mongo-tfrecords - Library that exports mongodb data to tensorflow files (tf-record)
Project description
mongo-tfrecords
mongo-tfrecords - Library that exports mongodb data to tensorflow files (tf-record)
Installation
pip install mongo-tfrecords
Usage examples
# from bash
python3 -m mongo_tfrecords
# api docs
python3 -m mongo_tfrecords --help
# from python
from mongo_tfrecords import export
export(
collection="test",
database="mongodb://user:password@hostname:27017/database_name?authSource=admin",
path="/path/to/",
files_template="{}.tfrecord",
count_per_file=100000, # count items per one file
features=["field1", "field2"], # fields [int, float, string, bytes, ...],
skip=10,
limit=10000,
verbose=True, # show progress bar
)
License
Apache License 2.0 (See LICENSE)
Copyright 2020, Vadim Sharay
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
mongo_tfrecords-0.0.1.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for mongo_tfrecords-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8837156d6a749046058629930004ce2f728b3e0b390f67079afe0058d8208692 |
|
MD5 | 84b2fa9ae9d2660260bb6803003cf414 |
|
BLAKE2b-256 | 446d4dbe3d7f65f08da74f7790cc5a8f778fee624d7f1fefcfadf6aa344dfca4 |