Skip to main content

Gravity-ai.com

This package includes helper scripts for interfacing your machine learning code with the Gravity-ai.com containerization code.

To install from pypi:

pip install gravityai

To install from source:

python3 setup.py install

Example Implementation Code

from gravityai import gravityai as grav

# the following function is a callback (defined by you), that may be
# async or synchronous and that may be called multiple times, to
# transform input data against an algorithm or model (or whatever you want)
# If an error is experienced, return an error string message, or throw an exception.
def process_data(dataPath, outPath):
    # TODO:
    # Read data in from dataPath
    # Transform Data via model
    # Write data out to outPath
    # Return None if everything went ok.
    # return an error string if there was a problem.


# TODO Initialize models, etc. before calling wait_for_requests.

grav.wait_for_requests(process_data)

Building a new Version

To build a new version for pypi (only we do that):

python3 -m pip install --user --upgrade setuptools wheel

python3 -m pip install --user --upgrade twine

python3 setup.py sdist bdist_wheel

python3 -m twine upload --repository pypi dist/*

Use the saved credentials, and remember the username is __token__

Metadata

Release files for gravityai 0.1.4.post2

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

Source distribution (sdist)

Source distribution for gravityai 0.1.4.post2
File Size Uploaded Provenance Actions
gravityai-0.1.4.post2.tar.gz 6.2 kB Without provenance Details for gravityai-0.1.4.post2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gravityai 0.1.4.post2
File Interpreter ABI Platform Actions
gravityai-0.1.4.post2-py3-none-any.whl Python 3 none any Details for gravityai-0.1.4.post2-py3-none-any.whl

Total release size: 12.8 kB

Release files / gravityai-0.1.4.post2.tar.gz

Download URL gravityai-0.1.4.post2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aa7ee0f1abc611eff0932f3a23d9dfe22f4a6c6713497aeb22718cae6076288c
BLAKE2b-256 checksum
How to use checksums
9b52b70d4c371fbfd9b58b64558654051a7952d62ba8633e0a4ceeaaf03ecb0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / gravityai-0.1.4.post2-py3-none-any.whl

Download URL gravityai-0.1.4.post2-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e024dc699c9847752951ffd19539801a65658d8c0add378788fed6163e034cc
BLAKE2b-256 checksum
How to use checksums
396aeea3c93b3b4946480e2e135802cf837f988587aa8b111439a971161472d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Security for gravityai 0.1.4.post2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.4.post2 This release

2 release files No provenance

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