Skip to main content

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

oxenai-0.44.1-cp313-cp313-win_amd64.whl (45.3 MB view details)

Uploaded CPython 3.13Windows x86-64

oxenai-0.44.1-cp313-cp313-manylinux_2_34_x86_64.whl (52.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

oxenai-0.44.1-cp313-cp313-manylinux_2_34_aarch64.whl (50.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

oxenai-0.44.1-cp313-cp313-macosx_11_0_arm64.whl (45.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

oxenai-0.44.1-cp313-cp313-macosx_10_13_x86_64.whl (48.5 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

oxenai-0.44.1-cp312-cp312-win_amd64.whl (45.3 MB view details)

Uploaded CPython 3.12Windows x86-64

oxenai-0.44.1-cp312-cp312-manylinux_2_34_x86_64.whl (52.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

oxenai-0.44.1-cp312-cp312-manylinux_2_34_aarch64.whl (50.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

oxenai-0.44.1-cp312-cp312-macosx_11_0_arm64.whl (45.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

oxenai-0.44.1-cp312-cp312-macosx_10_13_x86_64.whl (48.5 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

oxenai-0.44.1-cp311-cp311-win_amd64.whl (45.3 MB view details)

Uploaded CPython 3.11Windows x86-64

oxenai-0.44.1-cp311-cp311-manylinux_2_34_x86_64.whl (53.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

oxenai-0.44.1-cp311-cp311-manylinux_2_34_aarch64.whl (50.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

oxenai-0.44.1-cp311-cp311-macosx_11_0_arm64.whl (45.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

oxenai-0.44.1-cp311-cp311-macosx_10_13_x86_64.whl (48.5 MB view details)

Uploaded CPython 3.11macOS 10.13+ x86-64

oxenai-0.44.1-cp310-cp310-win_amd64.whl (45.3 MB view details)

Uploaded CPython 3.10Windows x86-64

oxenai-0.44.1-cp310-cp310-manylinux_2_34_x86_64.whl (53.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

oxenai-0.44.1-cp310-cp310-manylinux_2_34_aarch64.whl (50.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

oxenai-0.44.1-cp310-cp310-macosx_11_0_arm64.whl (45.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

oxenai-0.44.1-cp310-cp310-macosx_10_13_x86_64.whl (48.5 MB view details)

Uploaded CPython 3.10macOS 10.13+ x86-64

File details

Details for the file oxenai-0.44.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: oxenai-0.44.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 45.3 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.4

File hashes

Hashes for oxenai-0.44.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5a402b1ef3e4600fc033eb9a83b0bf7fcdddb01f796031a54f39f291ca0adeaa
MD5 86022b15ca5ad40ffe2c25aed4c07d87
BLAKE2b-256 a253f15fbb5a5904f59006e52c6a62a31b46586b4eb115e1497d65cc42b80c69

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 639e6fbd071c41f449ae3410165a139ae098d061ec266c62f59c4bd8dfbe0f96
MD5 b2d6a7bf7a1594c3eb6172282a1d8e16
BLAKE2b-256 bf20e67992ba573b390a93b6504e2a5ad990e3fc9f048b2d62c59fa6ceb19068

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 179bf91b9af5ad82a49d117813936145187e5c0b2fb860c0ebbc1bc705f85e78
MD5 f899bb0833f76c874666e59d56aa207d
BLAKE2b-256 8939ae5fc58f2dd7845bac5aecd7bcd13d7d02006a453dd444c4afe6a37885cf

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40f8aca4432445feab47bc96cefb3d33704ebc41a3a8325572eb524278f9c8ee
MD5 f4a71c00606ca25e348f43e0417185a7
BLAKE2b-256 67a071cb439e7ea422bef47a70c6b4202bb506c3fb3d6d81318b1fab14199839

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 1b3d6a54ec5a55028236771b8d880f3d6cb4813abb69bedbc265fd8f28f0fccc
MD5 7f251d0946ee75c977cfac17e4284976
BLAKE2b-256 20c1880f3b69e5bec1c4c90c0956131449106e0f4678339ccb31b4359664e8ba

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: oxenai-0.44.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 45.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.4

File hashes

Hashes for oxenai-0.44.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f73481061d29cbcc02ad46c093193165df9f2d78eab71b5a2c00f339210bfd96
MD5 e78672965003b11d6c646409c6cceb9a
BLAKE2b-256 dfd7594cf7206cac7fac47b6c66dff1897bb5e79e0baf6524e505cda01f501d3

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2b554f713edaf893bc364bdeccf4c92df7a3b3ff3372dd96dae667c247991e34
MD5 e826ead8775fe19138d678b36b215773
BLAKE2b-256 dea2d1d50ebdebe4bc56fce3b1fb2115325969849b4da645eccdd8ae44b3f840

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 87e826196e833bee6d50e5922dfa4d586e2c74abaf8f0814a2f90a1d97e6378b
MD5 b8e0095a613f6ab28341c104ad8583de
BLAKE2b-256 2158ae3c70ba941b266b7ba025612ca91e5e33068a091994a3083ca5b9169a6e

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 965ad9e6b134370c99107cf4c14c2756d93a3bfa5ef11d1e1037e1f9ccf0983a
MD5 1d2ec0487a68c26d2332794a64c03b0b
BLAKE2b-256 528b19c75c91bd2c3d0dc7c5e270cd24eaed7f15fb56c9d03fdedba84d0e304a

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 4fc03d3727e6fb00f59e263c1ac1d8988e9cec7701f01635cf1671eb20078658
MD5 54e016dd4e9f97c4d592d43ff2abaf22
BLAKE2b-256 07bf43cc62574765bfb6b2456456175eafbf36525a6c9d9cfc29dac7db018d1e

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: oxenai-0.44.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 45.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.4

File hashes

Hashes for oxenai-0.44.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4cb48178f1a054c76cb996d8642df50131be4ebafe1fd8a4a68d4a62e0606a90
MD5 5280cae24d4a74f6d4435786ff07c216
BLAKE2b-256 ab8e5b00ac63044281fde76de8cc0e7fcc2682dab176547f7bbc77966cb0b00d

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ca8ffe0337ad2ef7b8a115c72a0748465cfbb6c94eb7231822c500144a511b9e
MD5 c29b236bd430023426b2616f79dca400
BLAKE2b-256 9f67f6eb15dd11f4e5637ef04def509c45e05e2a8f20bb0e5038d8d065980f4a

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 0bf84d8a1558b014e884c0387afc02a15bc67292f07d5676ed38446e26dd1767
MD5 dde15c8f0a512020fb5037251b031418
BLAKE2b-256 83c10aece3612351b9a1177e848703b81ba7c8b4174751a9997a7ee033f6e73e

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd3390d317aa1fec97f46c026afa6fcff4f9a52ef7cf1ce0b2046a497b6c8f91
MD5 b413cb6c8cb9e7170ce12022bd72e548
BLAKE2b-256 206ded673f09c34b992fa90dc09c9445962c6178705f41e38569690a597ce261

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp311-cp311-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp311-cp311-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b3fe67497cdb4d1cc75bdf78edd689e7d8ab62eea393ac418631dbb46bd8ab43
MD5 2d0479e724b6aa0aa9237bba1c74b0b6
BLAKE2b-256 9905056788d200322cd4185400b83571235e099918f86604c50818958eab5dbf

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: oxenai-0.44.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 45.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.4

File hashes

Hashes for oxenai-0.44.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c4971cf445a199f1f560969869c695a726c8ef505ec97fcdda20eaba378b2f08
MD5 7d6346028af0a748dfbe2747f0e6f137
BLAKE2b-256 265bf90e49cb213d9269e039eb48269e4319ed90e620b931c28efbff2225de92

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 742b6b551caaa766461ad4691f56a2702f45acdefca6a1e1d0697f565676004d
MD5 728397c808f5564ebb26c183e5256ae9
BLAKE2b-256 6bff0b20c5f63af1b59822875067ce635b873d2347d816a990a3998169e8f76f

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 ea846938cf635b5fc4b7ef1b09e37be0b9c6420cd6768c4a2e90cdbda3a0594f
MD5 e9784d8b7bf4134f7775abbe9a780d0b
BLAKE2b-256 9f404203a4c6e9d40e17eecdc0650dc9310e26733963f4e8b4517577cc875a1c

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7c93963a948145b26d194a306157847e305b92e2fba8c1a4380ade34ef7aa97
MD5 cafe743f0cc8b924c8f0698a62f8dddf
BLAKE2b-256 cae813d8759ed217410a23523366e86c90b966cabba41575a47d440850aa4b45

See more details on using hashes here.

File details

Details for the file oxenai-0.44.1-cp310-cp310-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for oxenai-0.44.1-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7862b48dfc8ff5e311b328e4b841806951f382c3a506d9d451287dcab58c4280
MD5 b09916bfaf80618a24462629a3de26ea
BLAKE2b-256 9b92d1093ad87b455f0618513885ed734aa06f3207d5e0ae4eb7d8c6602f8c89

See more details on using hashes here.

Supported by

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