PyBites-Open-Source / eatlocal

This package helps users solve PyBites code challenges on their local machine.
MIT License
20 stars 9 forks source link
hacktoberfest pybites

forthebadge

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

Version 1.1.0

Version 1.0.0

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