Skip to main content

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

Metadata

Release files for mongo-tfrecords 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mongo-tfrecords 0.0.2
File Size Uploaded
mongo_tfrecords-0.0.2.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mongo-tfrecords 0.0.2
File Interpreter ABI Platform
mongo_tfrecords-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / mongo_tfrecords-0.0.2.tar.gz

Download URL mongo_tfrecords-0.0.2.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
50fc6d572211fb73906aef239d0d4ca7b2f1a9d659cf0765c56190d0b0880197
BLAKE2b-256 checksum
How to use checksums
e38496c7874cefe68034a515c2434f8af42c9d305253741262ec29591ef2a7d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

Release files / mongo_tfrecords-0.0.2-py3-none-any.whl

Download URL mongo_tfrecords-0.0.2-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
737af136036558039c17b1952204d8f729b6d893f91b305964c1dcadeb068811
BLAKE2b-256 checksum
How to use checksums
366188e1b5bb670cb30f7f71f1af46dde712cb0c655185a8b5e6b16516e262f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page