How to install
As we're not in the PyPi yet, go for
pip install git+https://github.com/nyddle/pystash.git
That, of course, requires having pip installed.
We’ll write more stuff here lately as soon as the installer will be ready. There’ll be a separate set
of instructions for each platform.
Type stash -h to check that stash is installed successfully. If this command produces
sensible usage instructions, then we're all good.
If something goes wrong, please shoot an email at
nyddle@gmail.com
or ping me on twitter:
@davydyoung.
How to use
After installing, set up an account either on the web or in the app.
First, login to the cloud.
$ stash login
Please enter your email:
$ registration@mail.com
Please enter the password:
$ *************
Logged in.
Stash keeps data as key-value pairs. Come up with a nice key name and put the meaningful stuff inside it.
$ stash set foo bar
Saved
You can omit the set command:
$ stash designbook ‘About Face 3: The Essentials of Interaction Design’
Saved
To retrieve the value use get or just the key name.
$ stash get foo
bar
$ stash foo
bar
Delete the key with remove or delete or rm:
$ stash delete 37signals
Key deleted.
Use all command to view the whole database.
$ stash all
foo: bar
You can turn off the cloud with remote off:
$ stash remote off
REMOTE: off
Same with the local storage:
$ stash local off
LOCAL: off
$ stash remote on
REMOTE: on
When you logout of the cloud, it is turned off automatically.
$ stash logout
Bye!