Tool to solve Pybites Platform exercices locally.
Project description
eatlocal
Eatlocal helps users solve Pybites code challenges locally. This cli tool allows you to download bites from the platform. You can display bite directions directly in the terminal. Once you have solved the bite you can use eatlocal to submit and it offers to open your default browser the corresponding bite page.
Table of Contents
Updates
eatlocal 1.0.0+ has been updated to work with version 2.0 of the PyBites platform.
Breaking Changes
Version 1.1.1
- Moved the local bites database to a new location. It used to be in the directory set by the user, now eatlocal will look for it in
~/.eatlocal
. Runeatlocal init
to set the new location.
Version 1.1.0
- Uses the bite slug for the name of the directory.
Version 1.0.0
- eatlocal version
1.0.0
only works on the new platform (v2). - eatlocal directory no longer has to be a git repository.
- Submitting a bite no longer pushes it to GitHub.
- Bite directories are now names by the bites instead of the number.
- No need to download chrome and chrome driver.
- No more verbose mode
Setup
Run eatlocal init
to configure your PyBites username, PyBites password*, and local where you will solve your bites.
*Note: If you signed up for PyBites by authenticating through GitHub or Google, you will need to set a password on the platform first.
Usage
Set up your email, password, and directory where you will solve your bites. It will also create the local bites database, and the cache database:
eatlocal init
Download bites:
eatlocal download
If you want to force a re-download of a given bite use the --force
flag. This will overwrite the bite directory.
eatlocal download --force
By default, eatlocal
will cache the bites list and update it every 30 days. If you are not seeing a new bite, then you can clear the cache with the --clear-cache
flag.
eatlocal download --clear-cache
Display bites in the terminal:
# change the theme with -t <theme name>
eatlocal display
Submit bites:
eatlocal submit
Installation
There are a few options for install eatlocal.
Using uv
If you have uv installed:
uv tool install eatlocal
Using pipx
If you have pipx installed:
pipx install eatlocal
macOS/Linux
pip3 install eatlocal
Windows
pip install eatlocal
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
Built Distribution
File details
Details for the file eatlocal-1.1.3.tar.gz
.
File metadata
- Download URL: eatlocal-1.1.3.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d65281c2189fbe31568fdabd3f05e732e2c77c1cca91c69c2f97f1619e6af62b |
|
MD5 | 9b8086d959e9aa0edfc35e290d4971ae |
|
BLAKE2b-256 | 23357f9669b70eb039a1cdd8e298716dcf83817f9d942c3c5d97b0d7969eda09 |
File details
Details for the file eatlocal-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: eatlocal-1.1.3-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2934abbfd9cdeed9b79090aaed457a4c050d88d3e57f4b3776e9a8c4bb5b5dc5 |
|
MD5 | f12dae3afb9f301bdd72043308a448ed |
|
BLAKE2b-256 | e61279d8f5592c58b4bca11feedf0a5f931d1914f8889d50c679e6dae6fbed4a |