Skip to main content

Use object storage as a self hosted hub

Project description

artifact-hub

main workflow

Manage artifacts using object storage. Manage all kinds of artifacts E.g. models, json files, sqlite dbs and track their versions and history using any object store as a backend. This project facilitates self-hosted hub without a lot of management overhead.

Currently supported object stores include:

  • S3

Installation

pip install artifact-hub

Usage

  1. Create a sample file sample.txt

    This is a sample file 
    with multiline content
    
  2. Initialize the hub instance for a specific object/project

    from artifact_hub import s3_hub
    
    hub = s3_hub("bucket", "folder", "object_id")
    hub.push("sample.txt", "first push", "description of first push")
    

Limitations

  1. Concurrent push and pulls from multiple parties at the same time can not be handled. because of the linear nature of the history the last push will overwrite the previous one.
    Actor A and B tries to push concurrently
    Actor A and B pull latest version 10
    Actor A complete push version 11 early
    Actor B completes push version 11 late and overwrite Actor A's push. This may happen when Actor B is pushing a much larger change than A's
    

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

artifact_hub-0.0.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

artifact_hub-0.0.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file artifact_hub-0.0.2.tar.gz.

File metadata

  • Download URL: artifact_hub-0.0.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for artifact_hub-0.0.2.tar.gz
Algorithm Hash digest
SHA256 77352472b69f8221d28c65a00a60718a7b5e941ef9f8532cec4a7459da843739
MD5 c952d0eb0bbf0411b9579bf61ea55811
BLAKE2b-256 d54271a00578c9d8dfb0fdc8c56c4f2dfb370ea8f8ff2ae8daa60ed102a144ba

See more details on using hashes here.

File details

Details for the file artifact_hub-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for artifact_hub-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04fc55699546e9416ed7d0b2fec2442bd97ebdc9cd5521e7f01c113d48bd3086
MD5 f17e085d0b18ece806938aa9cd20f3cc
BLAKE2b-256 f209ad203de2848f71c9858bc20d14ad49f2019dc8531a50ebe4cad8fb2240f0

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