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:
- Already logged into GitHub from the command line, and able to pull a private repo.
- 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. - Set the
gh_auth_token
global variable in theprior
package with:
import prior
prior.gh_auth_token = "<token>"
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
prior-0.0.1.dev21.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for prior-0.0.1.dev21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bc362a5dcb47ac0457c0d3934354705c0603f38fe7cce64ca62f2c958ceec51 |
|
MD5 | 09d7dd9cd8c16eaf8a98859d65f5506f |
|
BLAKE2b-256 | d5a82a2cf1dcf9733a90af073698f68bd67ba3083fc61c7ea9cff1b525a9933b |