{ "info": { "author": "Doc.ai", "author_email": "neeraj@doc.ai", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "# tensorio-bundler\nCreate TensorIO model bundles\n\n\n## Running the bundler from the command line\n\nNOTE: Working on making a PyPI package. Once that is done, these instructions will change\nto use whatever binary the corresponding `pip install` produces.\n\n### Requirements\n+ Python 3\n\n### Instructions\nThe `tensorio_bundler` module comes with a `bundler` utility that you can use to create TensorIO\nzipped tiobundle files directly from your command line.\n\nFor more information on how to run the `bundler`, run:\n```\npython -m tensorio_bundler.bundler -h\n```\n\nA sample invocation (using test data, assumed to be run from project root -- same directory as this\nREADME):\n```\npython -m tensorio_bundler.bundler \\\n --tflite-model ./tensorio_bundler/fixtures/test.tflite \\\n --model-json ./tensorio_bundler/fixtures/test.tiobundle/model.json \\\n --assets-dir ./tensorio_bundler/fixtures/test.tiobundle/assets \\\n --bundle-name sample.tiobundle \\\n --outfile sample.tiobundle.zip\n```\n\n\n## Calling the bundler locally through the REST API\n\nTo run the REST API locally from project root (same directory as this README):\n```\ngunicorn tensorio_bundler.rest:api\n```\n\nIn a separate terminal window, you can invoke the bundler as follows:\n```\nTFLITE_PATH=\"\\\"$(mktemp -d)/model.tflite\\\"\"\n\nread -r -d '' REQUEST_BODY <<-EOF\n {\n \"saved_model_dir\": \"./tensorio_bundler/fixtures/test-model\",\n \"build\": true,\n \"tflite_path\": $TFLITE_PATH,\n \"model_json_path\": \"./tensorio_bundler/fixtures/test.tiobundle/model.json\",\n \"assets_path\": \"./tensorio_bundler/fixtures/test.tiobundle/assets\",\n \"bundle_name\": \"curl-test.tiobundle\",\n \"bundle_output_path\": \"curl-test.tiobundle.zip\"\n }\nEOF\n\ncurl -v -X POST \\\n -H \"Content-Type: application/json\" \\\n -d \"$REQUEST_BODY\" \\\n http://localhost:8000/bundle\n```\n\n\n## Running the bundler via docker\n\n### Requirements\n+ Docker\n\nIf you don't have it, [get it](https://docs.docker.com/install/linux/docker-ce/ubuntu/)\n\n### Instructions\nYou can either bind mount the paths to the inputs into your docker container when you run the\nbundler or you can bind mount in a service account credentials file and set the\n`GOOGLE_APPLICATION_CREDENTIALS` environment variable to point at the mount path in the container.\n\nNOTE: These instructions are extremely sparse at the moment. They will not be so forever.\n\n\n## TensorIO Models repositories\n\nThe TensorIO bundler is now integrated with [tensorio-models](https://github.com/doc-ai/tensorio-models)\nvia the Repository REST API. Once a bundle has been built, you can use the\n`tensorio_bundler.bundler.register_bundle` method to register it against a TensorIO Models\nrepository. The `tensorio_bundler.bundler` CLI allows you to do this automatically through the\n`--repository-path` argument.\n\nThis requires two environment variables to be set in your environment:\n\n1. `REPOSITORY` -- a URL for a TensorIO models repository API URL (e.g. https://tio-models-test.dev.docai.beer/rest/v1/repository)\n\n1. `REPISITORY_API_KEY` -- a basic auth token used to authenticate requests against the repository\nREST API.\n\n## Running tests if you want to contribute to this project\n\n### Requirements\n+ Docker\n\nIf you don't have it, [get it](https://docs.docker.com/install/linux/docker-ce/ubuntu/)\n\n### Instructions\nSimply run:\n```\n./test.sh\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/doc-ai/tensorio-bundler", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "tensorio-bundler", "package_url": "https://pypi.org/project/tensorio-bundler/", "platform": "", "project_url": "https://pypi.org/project/tensorio-bundler/", "project_urls": { "Homepage": "https://github.com/doc-ai/tensorio-bundler" }, "release_url": "https://pypi.org/project/tensorio-bundler/0.3.1/", "requires_dist": [ "absl-py (~=0.7.1)", "astor (~=0.7.1)", "astroid (~=2.1.0)", "bleach (~=3.1.0)", "certifi (~=2018.11.29)", "chardet (~=3.0.4)", "docutils (~=0.14)", "falcon (~=1.4.1)", "gast (~=0.2.2)", "grpcio (~=1.18.0)", "gunicorn (~=19.9.0)", "h5py (~=2.9.0)", "idna (~=2.8)", "isort (~=4.3.20)", "Keras-Applications (~=1.0.7)", "Keras-Preprocessing (~=1.0.9)", "lazy-object-proxy (~=1.3.1)", "Markdown (~=3.0.1)", "mccabe (~=0.6.1)", "numpy (~=1.16.4)", "pkginfo (~=1.5.0.1)", "protobuf (~=3.6.1)", "Pygments (~=2.3.1)", "pylint (~=2.2.3)", "python-mimeparse (~=1.6.0)", "readme-renderer (~=24.0)", "requests (~=2.21.0)", "requests-toolbelt (~=0.9.1)", "six (~=1.12.0)", "slack-invoker (~=0.1.4)", "slackclient (~=1.3.1)", "tensorboard (~=1.12.2)", "tensorflow (~=1.12.2)", "termcolor (~=1.1.0)", "tqdm (~=4.30.0)", "twine (~=1.12.1)", "typed-ast (~=1.1.2)", "urllib3 (~=1.24.3)", "webencodings (~=0.5.1)", "websocket-client (~=0.54.0)", "Werkzeug (~=0.14.1)", "wrapt (~=1.10.11)" ], "requires_python": "", "summary": "Bundle models for use with TensorIO", "version": "0.3.1" }, "last_serial": 5369640, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8f8894c5309031b2c0b85b27624afec3", "sha256": "4ec4bd52cfb93efaa29c52f6eb4a58dae5e6a212ddf8d8a9bb6a13c7a4c619bb" }, "downloads": -1, "filename": "tensorio_bundler-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8f8894c5309031b2c0b85b27624afec3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14739, "upload_time": "2019-05-29T22:28:15", "url": "https://files.pythonhosted.org/packages/c4/f6/ab7692d5c830d139c50bb265611703fa4d8c0b0695eb8aa783e695cdfe7c/tensorio_bundler-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5371d8a01895188d3f1bd996209f6ad", "sha256": "91319d492ba9427bde13cbe808e92862432ab1d60bfce3aae1a1ed852feb9179" }, "downloads": -1, "filename": "tensorio_bundler-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c5371d8a01895188d3f1bd996209f6ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8484, "upload_time": "2019-05-29T22:28:17", "url": "https://files.pythonhosted.org/packages/d6/d3/9142fac32ed79f196ee7d0b30b507ed5983dda633f5c7473c1b2860e2afc/tensorio_bundler-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ecffceb0f847a40671e104ca1d0c8c65", "sha256": "a03e03e607ed8d5a4f394d837c159c8744235447e3c167db30afff739ccdfc4c" }, "downloads": -1, "filename": "tensorio_bundler-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ecffceb0f847a40671e104ca1d0c8c65", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15375, "upload_time": "2019-05-30T21:08:51", "url": "https://files.pythonhosted.org/packages/bf/47/2b091941a85b7e8155e0f2303056b7dcdd5e7b703b0e6153704bfd4881ca/tensorio_bundler-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f2ddfe3dae71e2e8fbab55a435097af", "sha256": "21d999dada3bdcd41dbe7615ac3fa03ee777ba2bcd93910c74afe1efb316ad3f" }, "downloads": -1, "filename": "tensorio_bundler-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1f2ddfe3dae71e2e8fbab55a435097af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9037, "upload_time": "2019-05-30T21:08:52", "url": "https://files.pythonhosted.org/packages/dc/6f/b721d62ebd7f12424a569ab47ea021db49a77cc50339b22db5ef11075442/tensorio_bundler-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "9fd99d1beffaa613d72bf34e8cd8da24", "sha256": "8ed59c7db84c3c1cc52b17583e91f1f29ef453024e69b916e29ed6dbbea141b6" }, "downloads": -1, "filename": "tensorio_bundler-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9fd99d1beffaa613d72bf34e8cd8da24", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16537, "upload_time": "2019-05-31T04:28:08", "url": "https://files.pythonhosted.org/packages/4e/dd/437da58ca371c9c4873d179640fd9b5b8870f35ef18dff157b4e4b02a561/tensorio_bundler-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d3f5a246b83664db7d0a3ae1a0194cb", "sha256": "b94b3beff761c305d759383a03f754cb994d805b42c5563b3364080aeb4cb7ee" }, "downloads": -1, "filename": "tensorio_bundler-0.3.0.tar.gz", "has_sig": false, "md5_digest": "9d3f5a246b83664db7d0a3ae1a0194cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10136, "upload_time": "2019-05-31T04:28:10", "url": "https://files.pythonhosted.org/packages/cf/c1/930ebde9d69478bcf38dbc368978e913585e5eb8f38dfc0981dd7871ba8a/tensorio_bundler-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "567b211cad5fefd6f430f36e4cd9a794", "sha256": "9d44e8cf7ddc0f9094e7eb3b7d4de5ff561b827f3b3cb7736ddc179e703b12ba" }, "downloads": -1, "filename": "tensorio_bundler-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "567b211cad5fefd6f430f36e4cd9a794", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16656, "upload_time": "2019-06-07T00:14:15", "url": "https://files.pythonhosted.org/packages/e6/cc/979e483054be10ffb30c53b43513d128f1ebb2fe06336c21e6c526dfbce6/tensorio_bundler-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0c51f3894b132d3c5a1d46473bcf756", "sha256": "f63194052cf730751e68844b1b222ce5feb3a69bfb062958b8aebf8401f66eb6" }, "downloads": -1, "filename": "tensorio_bundler-0.3.1.tar.gz", "has_sig": false, "md5_digest": "b0c51f3894b132d3c5a1d46473bcf756", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10239, "upload_time": "2019-06-07T00:14:18", "url": "https://files.pythonhosted.org/packages/ba/8a/f631b32673f33dc2729631f6ba51b43bee517a0864714866eb4d8b0cd4a2/tensorio_bundler-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "567b211cad5fefd6f430f36e4cd9a794", "sha256": "9d44e8cf7ddc0f9094e7eb3b7d4de5ff561b827f3b3cb7736ddc179e703b12ba" }, "downloads": -1, "filename": "tensorio_bundler-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "567b211cad5fefd6f430f36e4cd9a794", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16656, "upload_time": "2019-06-07T00:14:15", "url": "https://files.pythonhosted.org/packages/e6/cc/979e483054be10ffb30c53b43513d128f1ebb2fe06336c21e6c526dfbce6/tensorio_bundler-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0c51f3894b132d3c5a1d46473bcf756", "sha256": "f63194052cf730751e68844b1b222ce5feb3a69bfb062958b8aebf8401f66eb6" }, "downloads": -1, "filename": "tensorio_bundler-0.3.1.tar.gz", "has_sig": false, "md5_digest": "b0c51f3894b132d3c5a1d46473bcf756", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10239, "upload_time": "2019-06-07T00:14:18", "url": "https://files.pythonhosted.org/packages/ba/8a/f631b32673f33dc2729631f6ba51b43bee517a0864714866eb4d8b0cd4a2/tensorio_bundler-0.3.1.tar.gz" } ] }