pyshovels is the unofficial Python package designed to interact with the Shovels API. 📦
To get a local copy up and running follow these simple steps.
- Python 3.9 or higher (as specified in
pyproject.toml) - A Shovels API key
For users:
- Install using poetry (recommended) or pip:
or
poetry add pyshovels
pip install pyshovels
For contributors:
- Fork and clone the repo and install in editable mode:
then
git clone https://github.com/<your-username>/pyshovels.git cd pyshovels
orpoetry install
pip install -e .
Setting your API key:
- Set your Shovels API key as an environment variable (recommended):
- Add your Shovels API key to a
.envfile - look at the .env.example file for an example - Or set it as an environment variable directly
export SHOVELS_API_KEY="your-api-key"
- Then, load the environment variables using the
load_envfunction:from pyshovels import load_env, ShovelsAPI load_env(env_path="./path/to/.env") # not necessary if you set the API key as an environment variable directly shovels = ShovelsAPI()
- Add your Shovels API key to a
- Or pass the API key as an argument to the
ShovelsAPIclass:from pyshovels import ShovelsAPI shovels = ShovelsAPI(api_key="your-api-key")
⚠️ Note: If passing the API key as an argument, be careful not to accidentally share it with others.
Look at the examples folder for usage examples.
For more detailed examples on how to use the Shovels API, please refer to the official documentation.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a ⭐️! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE file for more information.
GitHub: nicolasakf
Email: [email protected]