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 Repo
and a RemoteRepo
.
Local Repo
To fully clone all the data to your local machine, you can use the Repo
class.
import oxen
repo = oxen.Repo("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 = oxen.Repo("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.17.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438dda65d5c9406face7764dea75ffef5ae856921a3104205cde7b21b04ea6fc |
|
MD5 | 77511c0ddcba35dbff7ddbfa2e0678a6 |
|
BLAKE2b-256 | 0cfcf396aa0220ee901d074b5a5358ca5728fab3970d9e2c0e5da6679eafacbd |
Hashes for oxenai-0.17.0-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdf89ce1cd0afc5016d40e513845a018b8e13ed748ca1d22db5ebb2c5e815b49 |
|
MD5 | b7186a90023276db45a61768740a232c |
|
BLAKE2b-256 | 74c2c5b02db5cede7a2287a39a7604c73b2e2827d14138c71decf1c20dc02fb3 |
Hashes for oxenai-0.17.0-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9f36fbf38bdae2a5a09b6fdf4b7375dd5111e4bfdc10e793a30f175ea99430a |
|
MD5 | c05252b7d7672c4a6a9eaa7cc904c9da |
|
BLAKE2b-256 | ffbe85e67189ad0e5dcc52e651f63577d75b858db1f7f9c29aef417670d4038d |
Hashes for oxenai-0.17.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f79c2b9eb1ed5a040f076a83488af48663630562ebc973f0dfef0b7adf01fd3 |
|
MD5 | 252e5f1a0c5570054e3b96fe39d3ae5e |
|
BLAKE2b-256 | 49b8b3691141e8d07d28f93d1db3133a62e9e0ec8e8148ff2176f17fe2520c40 |
Hashes for oxenai-0.17.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63b06afc0bfcd1d4f9cb892147eb48c0da284f9b6cf700de9dd0ec96534ed7c6 |
|
MD5 | 78a2c8f29a23ac38fb76a18110e7a049 |
|
BLAKE2b-256 | 31098dcda3395c70b00b8a181bf4efa147b7347f8374ff84254de37ae1897f95 |
Hashes for oxenai-0.17.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db0af213a1bc6d448868bbf7bad034aec318493b0f8053a70cdbe4d9444bf433 |
|
MD5 | caaebd40455b93abb3b133a94e79c5a6 |
|
BLAKE2b-256 | 0659f9d8f935ee432c6cdff6bffb19d4e56e75efad03cd710bf1a1176ef9b077 |
Hashes for oxenai-0.17.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cbaee7e56a2affcf30212efc4be24d1525a3c09f69693e8c26740c72c23da35 |
|
MD5 | 11b32d47211058f1cf6eebd8f7291ea3 |
|
BLAKE2b-256 | 77a8e49d35342b47aa9d6e354dbf43d49bc26365694d1d8aa2144795a527abc8 |
Hashes for oxenai-0.17.0-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 428c4349f42472c7c9c28655210771d5cc2cd05c005dacf2b1fc577c330e4bf2 |
|
MD5 | 30fe44994d5561b96a6aa91ffa0f1808 |
|
BLAKE2b-256 | c533d096c069f4f5b901a8d2958eeafde65083df8bedad1c6d13b0b74dc51bc6 |
Hashes for oxenai-0.17.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fe0fafb8fe3a6de83e52b1d35724b579c48e466b0c46f96444badeafb27e2a0 |
|
MD5 | dd7180999af2ca8becff700162c8d1cb |
|
BLAKE2b-256 | a3ef95c2c718a8d872ac97acaf6d22fd24c704d4b8132fb11c16fbeec5dc2014 |
Hashes for oxenai-0.17.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbb9a2e4289ebafdc520ad0a6e2c91197746591252a2f90edb8191b19c5f9104 |
|
MD5 | 987b7f54fc32ab1a27a3d6c293683a87 |
|
BLAKE2b-256 | b9ca0e51470179e94f07dd714f714e712c79613c9842fe4def62f90268e24355 |
Hashes for oxenai-0.17.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6dca6b21e6685abf3e1d469a61e3cbde50412c2e5926c6a282de5363037a12d |
|
MD5 | b147d247532be8ea0f9e9b9c651eb67f |
|
BLAKE2b-256 | 3526c1c7726106ea65db46ce97765939f976c370016117eaf23281eeb838ccaf |
Hashes for oxenai-0.17.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90b1a4c68108b1f2c7a1e9c0b460f208a1c462bf6f36310b5034764cefc646c |
|
MD5 | e355182430c275ec51a17741ae1a9cfc |
|
BLAKE2b-256 | eae7b1435a94df54eb3ba05c98ff8fbe4bb7dc772bcbb65f0ac31c6225dd8d04 |
Hashes for oxenai-0.17.0-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aceaf17e6c035377aceec224e798fb841aafc6ec9576d4a4af6941548c792470 |
|
MD5 | 47318ee49b5961c21d213ac0aea18695 |
|
BLAKE2b-256 | 13f7140cde5c8f85084d4680f041469eb1ad71ff537b8c1c042b6567f0d63cd1 |
Hashes for oxenai-0.17.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 466172308abe904b859c03e59d938166f618db4afc19e72e904e2af9d9df6e1c |
|
MD5 | e8fd8070a80ba1ab75a0177cffde388d |
|
BLAKE2b-256 | 3cac536e2969a1ece6a09d97e93cd238e94866bd3f0130c1c38c30e03d8e1777 |
Hashes for oxenai-0.17.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b0ef133d98b8c979267f90a45beb41d989b19eae642db9d48b689dacce3f3e6 |
|
MD5 | 7a31736af695d40657ec9c760d803037 |
|
BLAKE2b-256 | 81ccbaa47c4885e8c0252df0608bd01b53b594d9243ad4cc9cf8951a12eb9c31 |
Hashes for oxenai-0.17.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6b8653ba1b4e75e16d99cac18c7753f966177f08f599a2d075d5d5284b5a2d6 |
|
MD5 | 18dbbcbc15217b70da5db4191a7cb828 |
|
BLAKE2b-256 | 98f27c6d8358b991f88a95bcce79356af38237a2b5a92c8905a69b16f6caacbc |
Hashes for oxenai-0.17.0-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d6eae06e35f8b96cc4032351245d8d23409a4d5b9c31767e3935826fbbd548b |
|
MD5 | c884b0a7dc78b8c55e5bf18310e16e84 |
|
BLAKE2b-256 | 18540ca1c165489aec1bd1282fe64844d29dfca71c80b4dec699f1d51cdb7a09 |
Hashes for oxenai-0.17.0-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 846705ce0dbaefb9bc21b7a3c4828bc12db7a48de21339dfe6556fa6571a1347 |
|
MD5 | a04a25595713cfa0494fd3f08dcaf472 |
|
BLAKE2b-256 | fcfe91faa1aa9558ab735e03c835e84e98942426e7ad5da07ddfc19207495f62 |
Hashes for oxenai-0.17.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e8c14007a248fb232648eb782c4744887f0c5cf71df632f8988a81473036570 |
|
MD5 | d8288cad70cad5249dfa8c08df0c7478 |
|
BLAKE2b-256 | f0c52e560cdfba6e415442350bd9a1e257d3ed7a418fcd7a6f3edb59b28c7cb4 |
Hashes for oxenai-0.17.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abeb524fb318ed5125fab9498a5046443bc666d3bba82bc3624e1921c688368d |
|
MD5 | e9a7978dbf6ee98f0526c109b092a6c4 |
|
BLAKE2b-256 | 4c22ba9da97a5ecd5d385f7b26ee1a81c1c52bc4e74102d65f0e2464562efe45 |
Hashes for oxenai-0.17.0-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50052ab6327edc7bd4e454a28792f18c5306d7a431c857025674c6e93956de05 |
|
MD5 | 1ff99f268131bd0b10ea1bf464e25335 |
|
BLAKE2b-256 | 828d7f2162be38e0115c3616ff7cb6095e9f5be2ec8f6c57f54e35a12f2d59e0 |