No project description provided
Project description
PRIOR
🐍 A Python package for distributing resources from AI2's PRIOR team
Installation
Install the prior
package with pip:
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.dev23.tar.gz
(11.7 kB
view details)
Built Distribution
File details
Details for the file prior-0.0.1.dev23.tar.gz
.
File metadata
- Download URL: prior-0.0.1.dev23.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01dbfa60d5a5b0c6d1a8b506b9cd460c62556adc8ec1f9b6a92dcba159c9e4d |
|
MD5 | 04ffaa0ab7364d237ac67842af750a37 |
|
BLAKE2b-256 | 795f048da1151c811d12c63faf246b60e5041f00cede432541e9605aa74302f1 |
File details
Details for the file prior-0.0.1.dev23-py3-none-any.whl
.
File metadata
- Download URL: prior-0.0.1.dev23-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eda991e0a01ef0beeba699929870198fc4638b88fdb186a08a825edce2a8580 |
|
MD5 | caae308030a57337506f54e1a2d1dcd3 |
|
BLAKE2b-256 | 97837bac19d0e4541117e87fa84b2f286fc1d80d4412b34fc9698da4ecee38f0 |