Datapunt Amsterdam objectstore module
Project description
Objecstore Libary
Contains common used objectstore code for our API’s.
During import / ETL tasks we offten use data uploaded to the objecstore from data sources.
Contributing
Found a bug or want to work on the code? You can branch the repository on GitHub or file an issue at its issue tracker.
1. Install the dev dependencies in your virtual environment
$ pip install --upgrade setuptools
$ python setup.py install develop
The setuptools pakage must be upgraded (as shown above) because the version that is pre-packaged with Python 3.6 causes problems when running the tests.
When you get a PYTHONPATH error, use the install-dir argument:
$ python setup.py install develop --install-dir venv/lib/python3.6/site-packages
2. Run the tests
The test suite and test coverage are run as follows:
$ python setup.py test
The Python style checker Flake8 can be run as follows:
$ python setup.py flake8
3. Example configuration and usage
python -m objecstore.databasedumps /backups/postgres.dump objectstore_dir --upload-db
uploads given dump with a date and environment informtion to objectstore
python -m objecstore.databasedumps downloaddir objectstore_dir --download-db
Dowload latest dump with the name database.environment.latestdate.dump from given environmnet with from location directory in objectstore. - WILL DELETE OLD DUMPS more then 20 days old.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file datapunt-objectstore-2018.7.25.tar.gz
.
File metadata
- Download URL: datapunt-objectstore-2018.7.25.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e4447dd7ef4e06a95be251193026f38b68542e350be5100afc0bb7d825b967 |
|
MD5 | 618a6203d799daab8751f2cf34f2d42c |
|
BLAKE2b-256 | d7f2a56527906aa16a6860622eb987811d0b82d790927ec3a422bf34fe04ad5c |
File details
Details for the file datapunt_objectstore-2018.7.25-py3-none-any.whl
.
File metadata
- Download URL: datapunt_objectstore-2018.7.25-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49905d5caa8fb360957bd9fac421964bc342b54b2c9960828229d27345d7c92a |
|
MD5 | 9326d58203022fbd52367b19d93b5433 |
|
BLAKE2b-256 | 5edf2e7bd61c58ce01d68cf8a98d9fb892f816ca98b10b4a17251924df834a4e |