A clean and lightweight Python wrapper for interacting with the GME Web API.
- Asynchronous Support: Built to work seamlessly with async Python applications.
- Simple Interface: Minimizes boilerplate to make API requests straightforward.
- Lightweight: Minimal dependencies to keep your environment clean.
- Type-Safe: Provides basic typing support for improved developer experience.
Install the package via pip:
pip install gmewebapiOr using uv / poetry:
uv add gmewebapi
Below is a simple example showing how to initialize the client and fetch data:
import asyncio
import gmewebapi
async def main():
# Initialize the client (configure with your credentials as needed)
async with gmewebapi.GME() as gme:
#get token, return true if ok
if gme.initialize():
#get prices data
prices = gme.getPrice(20260620, 20260621, Granularita, Mercato, Zona, Tipologia)
print(prices)
if __name__ == "__main__":
asyncio.run(main())
Contributions are welcome. If you find a bug or have a feature request, feel free to open an issue or submit a pull request:
- Fork the repository.
- Create a feature branch (git checkout -b feature/amazing-feature).
- Commit your changes (git commit -m 'Add some amazing feature').
- Push to the branch (git push origin feature/amazing-feature).
- Open a Pull Request.
License
Distributed under the AGPL3 License. See LICENSE.MD for more information.