{"id":15009903,"url":"https://github.com/jay-johnson/redten-python","last_synced_at":"2025-06-26T12:31:34.686Z","repository":{"id":62584417,"uuid":"92641166","full_name":"jay-johnson/redten-python","owner":"jay-johnson","description":"Python client and docker image for the red10 machine learning api","archived":false,"fork":false,"pushed_at":"2017-05-29T19:56:29.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T07:52:48.276Z","etag":null,"topics":["machine-learning","python2","redis","rest-api"],"latest_commit_sha":null,"homepage":"https://redten.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jay-johnson.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-28T05:08:52.000Z","updated_at":"2019-12-09T03:57:21.000Z","dependencies_parsed_at":"2022-11-03T22:18:23.346Z","dependency_job_id":null,"html_url":"https://github.com/jay-johnson/redten-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jay-johnson/redten-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay-johnson%2Fredten-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay-johnson%2Fredten-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay-johnson%2Fredten-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay-johnson%2Fredten-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jay-johnson","download_url":"https://codeload.github.com/jay-johnson/redten-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jay-johnson%2Fredten-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262067814,"owners_count":23253675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","python2","redis","rest-api"],"created_at":"2024-09-24T19:29:04.619Z","updated_at":"2025-06-26T12:31:34.610Z","avatar_url":"https://github.com/jay-johnson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"================\nRed10 Python API\n================\n\nThe standalone python client and docker container for: https://redten.io\n\n.. figure:: http://i.imgur.com/65dsKzX.png\n    :alt: Red10 distributed machine learning on Redis\n\n#.  To authenticate you will need valid login credentials\n\n    - Username\n    - Password\n    - Email\n\n#.  Please export these environment variables\n\n    ::\n    \n        export ENV_REDTEN_USER=Username\n        export ENV_REDTEN_PASS=Password\n        export ENV_REDTEN_EMAIL=Email\n        export ENV_REDTEN_URL=https://api.redten.io\n\n#.  Optional exports\n\n    Set the csv file path. Note this file must be accessible on all worker nodes.\n\n    ::\n\n        export ENV_REDTEN_CSV_FILE=\u003cpath to csv\u003e\n\n    Send forecast results to emails. Comma-separated without any spacing.\n\n    ::\n\n        export ENV_REDTEN_FORECAST_EMAILS=email1@email.com,email2@email.com\n\n    Can also set it to an empty string which will skip sending emails:\n    \n    ::\n\n        export ENV_REDTEN_FORECAST_EMAILS=\n\n#.  Using the ``redten-python`` docker container\n\n    Please note the docker image inflates to over 1 GB as it has the math libraries pandas and numpy installed.\n\n    To run a forecast:\n\n    ::\n\n        ./run-forecast.sh\n    \n    Run predictions:\n\n    ::\n\n        ./run-predict.sh\n\n#.  Install required pips\n\n    If you do not want to use the docker container, here's how to setup the local environment.\n\n    ::\n\n        pip install -r requirements.txt\n\n    Under the hood these are the current installed pips (pandas takes some time):\n\n    ::\n    \n        pandas==0.20.0rc1\n        requests\u003e=2.13.0\n        uuid\u003e=1.30\n        unittest2\u003e=1.1.0\n        simplejson\u003e=3.10.0\n\n#.  Install the pip from pypi repository\n\n    ::\n\n        pip install redten\n\n#.  Run a forecast job\n\n    ::\n\n        ./bins/forecast.py \u003cDataset-Name\u003e\n\n\n#.  Run a prediction job\n\n    ::\n\n        ./bins/predict.py \n\nFor more information:\n\n#. `Intro`_\n#. `Forecast`_\n#. `Predictions with the IRIS dataset`_\n\n.. _Intro: https://redten.io:8101/RedTen-Intro.slides.html#/\n.. _Forecast: https://redten.io:8103/RT-Price-Forecast.slides.html#/\n.. _Predictions with the IRIS dataset: https://redten.io:8102/RT-Run-IRIS.slides.html#/\n\n=======\nVersion\n=======\n\n1.0.1\n\n\n=========\nDebugging\n=========\n\nI'm on fedora 24 and on a virtual env I started hitting:\n\n::\n\n    Failed to Run ML Job with exception='unknown error (_ssl.c:2831)'\n    Predict job failed with error=Failed to Run ML Job with exception='unknown error (_ssl.c:2831)\n\nAfter I reinstalled ``certifi`` it started working again.\n\n::\n\n    pip uninstall certifi\n    pip install certifi\n\n================\nRelease Commands\n================\n\n#. Upload to pypitest:\n\n::\n\n    python setup.py sdist upload -r pypitest\n\n#. Upload to pypi:\n\n::\n\n    python setup.py sdist upload -r pypi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay-johnson%2Fredten-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjay-johnson%2Fredten-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay-johnson%2Fredten-python/lists"}