Skip to main content

Manipulate a key/value JSON object file in an S3 bucket through the CLI

Project description

# S3env

Manipulate a key/value JSON object file in an S3 bucket through the CLI. Built to ease setting [remote enviroment variables with Zappa](https://github.com/Miserlou/Zappa#remote-environment-variables).

## Usage

### Quick start.
```
$ s3env prod get
API_KEY=secret
FOO=bar

$ s3env prod set:BONJOUR=hello
Key successfully set.
Current configuration is...
API_KEY=secret
FOO=bar
BONJOUR=hello

$ s3env prod rm:BONJOIR
Key removed.
Current configuration is...
API_KEY=secret
FOO=bar
```

### Getting started.

Install via...
```
pip install s3env
```

Create an `s3env.json`.
```
{
"prod": "s3://zappa-private-github-pages-dev/prod.json"
}
````

Run commands.
```
$ s3env --help
```

## Development

After pulling down the repo locally, create a virtualenv, then install by running...
```
pip install -e .
```


## Deployment
Publish to pypi with...
```
python setup.py sdist upload -r pypi
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

s3env-0.0.4.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file s3env-0.0.4.tar.gz.

File metadata

  • Download URL: s3env-0.0.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for s3env-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9089aa54b39bf62f797a2cc401cd7bce317fbf01a1a1bd767b6bb1eb8f6eec44
MD5 de47442f466843b32f647b78082f200b
BLAKE2b-256 5e4454ac5c0d83fcd452cf2734856bd22f519aaafe7de125232312b25ce9f84a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page