Coder Social home page Coder Social logo

cal-itp / eligibility-api Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 536 KB

Python package for data exchange needed to verify one or more eligibility criteria for transit benefits.

Home Page: https://docs.calitp.org/eligibility-api

License: Apache License 2.0

Dockerfile 4.73% Shell 1.43% Python 93.84%

eligibility-api's People

Contributors

angela-tran avatar dependabot[bot] avatar machikoyasuda avatar pre-commit-ci[bot] avatar thekaveman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eligibility-api's Issues

Set up initial Python package

As a first-pass consolidation, we should extract code with as minimal changes as possible from benefits and eligibility-server.

It would also be good to add the configuration to make this a Python package so that benefits and eligibility-server can add it to their requirements.txt.

Create requirements.txt for devcontainer

Devcontainer requirements could be in a requirements.txt file and installed from there.

In the future if we need to worry about pinning dependencies or anything, having them in a requirements.txt allows for Dependabot and other tooling to more easily work with them.

Originally posted by @thekaveman in #3 (comment)

Publish to PyPI

See compilerla/conventional-pre-commit for an example of a publish workflow that:

  1. Publishes to Test PyPI when a pre-release is made on the repo
  2. Publishes to PyPI when a release is made on the repo

We'll want to use the @cal-itp-bot account to do this - we'll have to generate an API token for each of Test and regular PyPI using the Bot's account on each, and store in GH secrets in this repo.

Write tests for Client

We should have unit tests for Client and its verify method.

For these tests, maybe we could use the responses package to mock the verifying server.

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.