Skip to main content

MetaStore

Project description

PoC for MetaStore

You need to prepare two things to make ake it running

  1. a kaffka in the local and a created dream-1 topic
  2. a s3 credential to access the storage

Setup MetaStore API server

Run the docker-compose to setup meta-store API server

docker-compose up -d

Currently, the API server only contains Kafka, PostgreSQL, and Hasura.

  • Kafka: Serve for event subscription
  • PostgreSQL: Store all the relationship
  • Hasura: Dev tool for PostgreSQL and serve GraphQL endpoint

helloworld.py

It is a sample to write the event handler

@on('dataset', event='updated', filter={'name': 'demo-dataset-1'})
def on_dataset_available():
    print(f'on_dataset_available invoked')

    dataset = project.get('dataset', 'demo-dataset-1')
    model = project.create('model', 'model-1', {'dataset': dataset})
    model.update()
    return
  • on wait for a dataset artifact in created event and filtering by name=dataset-1
  • after training, we create Model and send a message to notify other handlers

send.event.py

# in PoC, we don't handle the kafka
# the Project object is a facade to everything {event sender, event listener runner, access to object store}
project = Project('dream-1', profile='local')

dataset = project.get('dataset', 'demo-dataset-1')
if not dataset:
    dataset = project.create('dataset', 'demo-dataset-1')
dataset.update()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infuseai-metastore-0.0.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

infuseai_metastore-0.0.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file infuseai-metastore-0.0.1.tar.gz.

File metadata

  • Download URL: infuseai-metastore-0.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for infuseai-metastore-0.0.1.tar.gz
Algorithm Hash digest
SHA256 83c963ae7e671db2298cf603d9630ee09e5e929ed829a2fc70e70ff608068e28
MD5 df7ee118dd63be0c83257017e3c1f0ae
BLAKE2b-256 462021859571e134fda5d5ea6cda58601c6a57777753199562cf54347a598d9a

See more details on using hashes here.

File details

Details for the file infuseai_metastore-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: infuseai_metastore-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for infuseai_metastore-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 875048d4b107bfac929d62a57e9ad9a2e8c03ac8eccb67423ac489708ede9033
MD5 1257ec941f6d2a7d6a3699c90e756cb4
BLAKE2b-256 03a75de28a95ec96217f96a00f8ba9405a4ff3a3fad4b6c4f5486091f00d3b39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page