Giter Club home page Giter Club logo

lunchpy's Introduction

LunchPy

Status API Coverage Issues License

About

LunchPy is a python client for Lunch Money's API. It requires an API key, which can be generated from your Lunch Money account under Settings -> Developers -> Request new Access Token. Note that while this library is considered production-ready, the API itself is still in beta, so breaking changes may still come from the Lunch Money team.

This package covers the full set of 18 Lunch Money API endpoints as of 9/13/2021. Future endpoints and extensions as well as most breaking changes from the API itself should be supported by this library automatically; additional parameters can freely be added to all calls without modification if they become supported by the API in the future, and if all else fails _query can be used to query an endpoint directly.

API Documentation

This package is for Python 3.9 and uses Semver 2.0.0 versioning.

Install

pip install lunchpy

This package requires Requests version 25 or newer.

Setting up the API Key

Initialize an environment variable LUNCH_MONEY_API_KEY equal to your API key. Alternatively, you can pass your API key to an Eat object on declaration.

Usage

from lunchpy import Eat

api = Eat('your_api_key')

for category in api.categories():
    print(f'You have a category called {category}.')

Contributors

Contributing

Contributions are welcome. With the 1.0.0 release this library is considered complete. If you would like to add additional functionality, the top 'nice to have' would be tests.

lunchpy's People

Contributors

vyryn avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.