generated from allenai/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.PHONY : docs | ||
docs : | ||
rm -rf docs/build/ | ||
sphinx-autobuild -b html --watch beaker/ docs/source/ docs/build/ | ||
sphinx-autobuild -b html --watch beaker/ --watch README.md docs/source/ docs/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,56 @@ | ||
# beaker-py | ||
|
||
A [Beaker](https://beaker.org) client for Python. | ||
|
||
## Quick links | ||
|
||
- [Documentation](https://beaker-py.readthedocs.io/) | ||
- [PyPI Package](https://pypi.org/project/beaker-py/) | ||
- [Contributing](https://github.com/allenai/beaker-py/blob/main/CONTRIBUTING.md) | ||
- [License](https://github.com/allenai/beaker-py/blob/main/LICENSE) | ||
|
||
## Installing | ||
|
||
### Installing with `pip` | ||
|
||
**beaker-py** is available [on PyPI](https://pypi.org/project/beaker-py/). Just run | ||
|
||
```bash | ||
pip install beaker-py | ||
``` | ||
|
||
### Installing from source | ||
|
||
To install **beaker-py** from source, first clone [the repository](https://github.com/allenai/beaker-py): | ||
|
||
```bash | ||
git clone https://github.com/allenai/beaker-py.git | ||
cd beaker-py | ||
``` | ||
|
||
Then run | ||
|
||
```bash | ||
pip install -e . | ||
``` | ||
|
||
## Quick start | ||
|
||
<!-- start quickstart --> | ||
|
||
Create a Beaker client with your Beaker [user token](https://beaker.org/user): | ||
|
||
```python | ||
from beaker import Beaker | ||
|
||
beaker = Beaker("my beaker token", workspace="my_org/my_workspace") | ||
``` | ||
|
||
You can also create your client from environment variables with: | ||
|
||
```python | ||
# Assumes your user token is set as the environment variable `BEAKER_TOKEN`. | ||
beaker = Beaker.from_env() | ||
``` | ||
|
||
<!-- end quickstart --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Quick start | ||
=========== | ||
|
||
```{include} ../../README.md | ||
:start-after: <!-- start quickstart --> | ||
:end-before: <!-- end quickstart --> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters