Skip to main content

No project description provided

Project description

Prior

🐍 A Python package for distributing datasets from AI2's PRIOR team

Installation

Make sure you have git-lfs installed, and then the prior package:

pip install prior

Example Usage

To use a public Python dataset, simply run:

import prior
dataset = prior.load_dataset("test-dataset", entity="mattdeitke", revision="main")

Here, revision can be either a tag, branch, or commit hash.

Private Datasets

If you want to use a private dataset, make sure you're either:

  1. Already logged into GitHub from the command line, and able to pull a private repo.
  2. Set the GITHUB_TOKEN environment variable to a GitHub authentication token with read access to private repositories (e.g., export GITHUB_TOKEN=<token>). You can generate a GitHub authentication token here.
  3. Set the gh_auth_token global variable in the prior package with:
import prior
prior.gh_auth_token = "<token>"

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

prior-0.0.1.dev21.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

prior-0.0.1.dev21-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file prior-0.0.1.dev21.tar.gz.

File metadata

  • Download URL: prior-0.0.1.dev21.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for prior-0.0.1.dev21.tar.gz
Algorithm Hash digest
SHA256 e826b91dacbe2f2f69fc458786bd59a6015913cbf55355ec03fecb089d2c3c97
MD5 bb553b534a92985bdd3194017edb482e
BLAKE2b-256 8e15630e891152627806f6b072355536bcfbfd70656d052adf5ac1f2f1aec785

See more details on using hashes here.

File details

Details for the file prior-0.0.1.dev21-py3-none-any.whl.

File metadata

  • Download URL: prior-0.0.1.dev21-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for prior-0.0.1.dev21-py3-none-any.whl
Algorithm Hash digest
SHA256 5bc362a5dcb47ac0457c0d3934354705c0603f38fe7cce64ca62f2c958ceec51
MD5 09d7dd9cd8c16eaf8a98859d65f5506f
BLAKE2b-256 d5a82a2cf1dcf9733a90af073698f68bd67ba3083fc61c7ea9cff1b525a9933b

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