Read and write common file formats to Amazon S3 and local files
Project description
baiji-serialization
===================
Read and write common file formats to Amazon S3 and local files.
Features
--------
- Reads and writes Pickle, CSV, JSON, and YAML
- Works without an S3 connection (with local files)
- Supports Python 2.7 and uses boto2
- Supports OS X, Linux, and Windows
- Tested and production-hardened
Examples
--------
```py
from baiji.serialization import json
with open(filename, 'w') as f:
json.dump(foo, f)
with open(filename, 'r') as f:
foo = json.load(f)
```
```py
from baiji.serialization import json
json.dump(foo, filename)
foo = json.load(filename)
```
```py
from baiji.serialization import csv
with open(filename, 'w') as f:
csv.dump(foo, f)
with open(filename, 'r') as f:
foo = csv.load(f)
```
```py
from baiji.serialization import csv
csv.dump(foo, filename)
foo = csv.load(filename)
```
Development
-----------
```sh
pip install -r requirements_dev.txt
rake test
rake lint
```
Contribute
----------
- Issue Tracker: github.com/bodylabs/baiji-serialization/issues
- Source Code: github.com/bodylabs/baiji-serialization
Pull requests welcome!
Support
-------
If you are having issues, please let us know.
License
-------
The project is licensed under the Apache license, version 2.0.
===================
Read and write common file formats to Amazon S3 and local files.
Features
--------
- Reads and writes Pickle, CSV, JSON, and YAML
- Works without an S3 connection (with local files)
- Supports Python 2.7 and uses boto2
- Supports OS X, Linux, and Windows
- Tested and production-hardened
Examples
--------
```py
from baiji.serialization import json
with open(filename, 'w') as f:
json.dump(foo, f)
with open(filename, 'r') as f:
foo = json.load(f)
```
```py
from baiji.serialization import json
json.dump(foo, filename)
foo = json.load(filename)
```
```py
from baiji.serialization import csv
with open(filename, 'w') as f:
csv.dump(foo, f)
with open(filename, 'r') as f:
foo = csv.load(f)
```
```py
from baiji.serialization import csv
csv.dump(foo, filename)
foo = csv.load(filename)
```
Development
-----------
```sh
pip install -r requirements_dev.txt
rake test
rake lint
```
Contribute
----------
- Issue Tracker: github.com/bodylabs/baiji-serialization/issues
- Source Code: github.com/bodylabs/baiji-serialization
Pull requests welcome!
Support
-------
If you are having issues, please let us know.
License
-------
The project is licensed under the Apache license, version 2.0.
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
Built Distribution
File details
Details for the file baiji-serialization-2.1.0.tar.gz
.
File metadata
- Download URL: baiji-serialization-2.1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47cab6f41159dbba7df0a5117020f2d4ce54ebced62dfdca5f2ef180a3a9e4f1 |
|
MD5 | 946fc0600b71b288ce023538d02b3c9f |
|
BLAKE2b-256 | 1ecd371a0908210146dcb4c35ef150e74ce2e0476d6bb40d30b77dda41bfbd9e |
File details
Details for the file baiji_serialization-2.1.0-py2-none-any.whl
.
File metadata
- Download URL: baiji_serialization-2.1.0-py2-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a01f9e37a4a323e4a5f6418e37677d56670ad46fa5af4e108356881eae91b2 |
|
MD5 | 7d1d17d435a048af82543db16e49f109 |
|
BLAKE2b-256 | 1bd1ff32d4c00a4158be357b81f7aca22c9ce20237e96cccc7d6f5fd37427984 |