Data version control for machine learning
Project description
🐂 🐍 Oxen Python Interface
The Oxen python interface makes it easy to integrate Oxen datasets directly into machine learning dataloaders or other data pipelines.
Repositories
There are two types of repositories one can interact with, a LocalRepo
and a RemoteRepo
.
Local Repo
To fully clone all the data to your local machine, you can use the LocalRepo
class.
import oxen
repo = LocalRepo("path/to/repository")
repo.clone("https://hub.oxen.ai/ox/CatDogBBox")
If there is a specific version of your data you want to access, you can specify the branch
when cloning.
repo.clone("https://hub.oxen.ai/ox/CatDogBBox", branch="my-pets")
Once you have a repository locally, you can perform the same operations you might via the command line, through the python api.
For example, you can checkout a branch, add a file, commit, and push the data to the same remote you cloned it from.
import oxen
repo = LocalRepo("path/to/repository")
repo.clone("https://hub.oxen.ai/ox/CatDogBBox")
repo.checkout()
Remote Repo
If you don't want to download the data locally, you can use the RemoteRepo
class to interact with a remote repository on OxenHub.
import oxen
repo = RemoteRepo("https://hub.oxen.ai/ox/CatDogBBox")
To stage and commit files to a specific version of the data, you can checkout
an existing branch or create a new one.
repo.create_branch("dev")
repo.checkout("dev")
You can then stage files to the remote repository by specifying the file path and destination directory.
repo.add("new-cat.png", "images") # Stage to images/new-cat.png on remote
repo.commit("Adding another training image")
Note that no "push" command is required here, since the above code creates a commit directly on the remote branch.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for oxenai-0.10.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b907ff716a6d3c42ea256622db1396731f2474fdc252b9cddd87ec68a8e11bc |
|
MD5 | 743d8b0f4e0afc99b125f9227ac49180 |
|
BLAKE2b-256 | 9762e2844cbfd14e9708fc6f7d0eeca600d3bf7245748c5d4a48812fc56870a7 |
Hashes for oxenai-0.10.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd499edc5c11f684eb5186bee7625ddbd27018f40258da531fb6c05e0453214 |
|
MD5 | a452d41c0f7e0227e4f75b90666a1a3f |
|
BLAKE2b-256 | 76d8369ad77b7a47031b7e08177384c70444e149e667522e553d8971a79943d7 |
Hashes for oxenai-0.10.0-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 128b518e51e7cf427c158cffa1b51732c2df8f290c36b0343c478c2132b6458f |
|
MD5 | dd275be32bcf8f150ce0523840153d96 |
|
BLAKE2b-256 | 48834ae872746965eccba7ee6aaa3f66c7a9cb2b5e509622067f04d3c10cafec |
Hashes for oxenai-0.10.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf41ed20078aad6af65b95bf33f96aeca358c4215bb71eb9833b2ebbb44e941 |
|
MD5 | d6fc5f10e95c45f2f79d2fbf26927cfb |
|
BLAKE2b-256 | 056dc025196cf1afd5c4305e4807b95924079794b679aa04be8ec887e3ef0511 |
Hashes for oxenai-0.10.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd4cc50160ab6805d52dd6410450a76436ea1d945cd3e5a5e00406253d4ed910 |
|
MD5 | 0b93394b2ceba2a1059e4d0e41d996e8 |
|
BLAKE2b-256 | 1cd9e72f1b0863c79e68b244d687bb31aaf2e4f4bd1ec212fc881ff9fa837364 |
Hashes for oxenai-0.10.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27a765c4352875af10ba678a1f14440300727e6ba8ea6078bf6abe6af53540d4 |
|
MD5 | 85ffdcf42357169205a42fdc72085b06 |
|
BLAKE2b-256 | 8b34c41e7bf99262e1b23e07bd337bfdb58ff81f1bfa06f0b21597f5125dcc1d |
Hashes for oxenai-0.10.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af21556915d24cf1831d1d9f01138c663a1c209fcc3b867219e394ff946aef7d |
|
MD5 | a2e954378b5c88e1482d160f61221964 |
|
BLAKE2b-256 | 6004393850dcb5e5c79ec87e55fde8392b0196a6d9156081badd29b3375238ce |
Hashes for oxenai-0.10.0-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eee49c2f741e03c67e16a776b867dee8cdba86236744da485f06fcdf9d2b1ac5 |
|
MD5 | 990d361ad93be9bd31cc5dd400f9f97f |
|
BLAKE2b-256 | 5ecf0335b3c99ddcc34d7573494acc98bfb8027789bebe0d9a494fe5048ca053 |
Hashes for oxenai-0.10.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8749de75e10d4b6653d321bc0bf5964645f161d6ee505bf73962846f6e2ff57c |
|
MD5 | 9113c7b36953ec71383a080a6808aa88 |
|
BLAKE2b-256 | 26faade22938bfff7af498b52f88b2a7303c304c1f3494e3c6c1b39caca543eb |
Hashes for oxenai-0.10.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c2ad3e13e195537395c2e17d5b70a9875a259b3332da39ea94d86e83c5dc133 |
|
MD5 | 87a7ed2c3bf34253d113c8a9afc7bae1 |
|
BLAKE2b-256 | b419d9af2b99c2a29bfac8b192edea12bf546791f7d2058348a0bbdf0039c4a8 |
Hashes for oxenai-0.10.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0b402b1fd4973431619a872bd12b329c57dbd3ea9d5ca5b0df9374ae6978482 |
|
MD5 | 199d528ae094eebea072996d5ba11e9d |
|
BLAKE2b-256 | a625ee607c0bf22a883499e48e288554118a3b5a21e57531bb0f7d2450b43422 |
Hashes for oxenai-0.10.0-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b809d3c5dd82e65dcfbf1257701f4cbe7a0e1a0fd3b0c6db9b90e05cdd247aa4 |
|
MD5 | ced59963bfa20d7df9d5c2275fd2a698 |
|
BLAKE2b-256 | 9add8a864af49837d9248190be7b96d6e596fa496ab1cbda76f163e18750eba6 |
Hashes for oxenai-0.10.0-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fd72de769fe7764140cb0dd23cd862fded3ad1a2abf134182f34e63fa7519a4 |
|
MD5 | cab4fdaa146458d5d2f5235abb31e728 |
|
BLAKE2b-256 | 74b37209814b30dfaebc9cc308b8aaab97faddcbbbb44950f0a901beac103e7a |
Hashes for oxenai-0.10.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88406eccda04a8cccccd832024f9dc4d1dff6a7fa2e8f976e92501360c256f77 |
|
MD5 | 6ab546467f7e08d322ce58f2e739c00b |
|
BLAKE2b-256 | 105b0ef2fd39e4b44a61abd7493faac76faacfa4e70ec5eaae5ad353a26e43b9 |
Hashes for oxenai-0.10.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f24ff4e12d98fe6b837aa6d8f7f99b1fe8798bebbc5950fd04e7ea3d8876d6bd |
|
MD5 | 2fc75d342457c5eb47329dfd6e03195f |
|
BLAKE2b-256 | 865ede9562789b0be49e2ebf957d549e5c7ca9436fe3a7f5e546df9b429e69e7 |
Hashes for oxenai-0.10.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ddcca6cd4a030005cf8cbef28ebd1b3b7260dee8646e48e431823a7898331a |
|
MD5 | 74996c51da7710295138e21b680b14af |
|
BLAKE2b-256 | 3653044a6495698c51637ec318028146977031336e8f1e0df99fc7d48dd4f782 |
Hashes for oxenai-0.10.0-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 111ffea77809ba97728acdd52762b5063473160ff29f703d44f0d4db9887bff6 |
|
MD5 | 14b6b7c701a06d5ce596a8b5cce56030 |
|
BLAKE2b-256 | 3078310c9b6600af7b1db286802de4f920026272ba9f16f7a2dda8f63b7d2800 |
Hashes for oxenai-0.10.0-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab6f3e0cdffddb5c51c5427bc28ce448802e4d299598fbf35b7277f4722f3b33 |
|
MD5 | 29d6e83be36421ecb8cb691e89574c71 |
|
BLAKE2b-256 | 72ec1ecbb76a6af568960afa803660c09adfd030a49ed0c79447f7ff2fe22074 |
Hashes for oxenai-0.10.0-cp38-cp38-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2340b3b48718f197c57885cc92d2f6478cd56f6ddbf6a875ba33e211000d4386 |
|
MD5 | 773aeb67a04f45a49fcf144da38f7a6f |
|
BLAKE2b-256 | 2c11f8d33f7fa34fbc5951b26cffa4b70ab78d0439f889dbde0b8822ff819bfd |
Hashes for oxenai-0.10.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7da9ec4ecd03f4dd4b52d9bd1443452d292fbacef76daf87c2a520f69b98e1fe |
|
MD5 | 11257e43e23cfd34661401e147a1e6ed |
|
BLAKE2b-256 | 57b7744f81ad05bd78c12cd76c7a82d0b709642011570a0551582c38fb080f0c |