Logo
Explore Help
Sign In
wrynegade/scwrypts
1
0
Fork 0
You've already forked scwrypts
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
fa9bb384623e51edccfbbf1834efd9425161de22
scwrypts/py/redis/interactive.py

21 lines
289 B
Python
Raw Normal View History

[RELEASE] v1.0.0 ===================================================================== Finally decided to port personal scripts into a standalone library. --- Release Notes ------------------------ - added support for python, zsh, and zx scripts - added support for "interactive" scripts which drop the user to a REPL - added support for passing arguments to commands - added support for python/node virtualenv management through scwrypts - added contributing and usage docs - updated zsh plugin to write commands to history - licensed under GPLv3 --- New Scripts -------------------------- zsh/scwrypts ) - configure - environment/copy - environment/delete - environment/edit - environment/synchronize - logs/clear - logs/view zsh ) - aws/ecr/login - aws/efs/mount - aws/efs/unmount - aws/route53/backup - aws/s3/media-sync/pull - aws/s3/media-sync/push python ) - redis/interactive =====================================================================
2022-04-28 16:09:23 -06:00
#!/usr/bin/env python
from os import getenv
from py.redis.client import Client
from py.scwrypts import interactive
@interactive
def main():
r = Client
print('''
r = StrictRedis("{getenv("REDIS_HOST")}")
''')
return locals()
if __name__ == '__main__':
main()
Reference in New Issue Copy Permalink
© 2020-2025 Wryn (yage) Wagner