Giter VIP home page Giter VIP logo

python's People

Contributors

echolabstech avatar

Watchers

 avatar  avatar

python's Issues

remove sensitive information from codebase

explanation

remove api key & uuid from codebase, and reset api key in google

todo

  • save keys in environment variables or a file
  • add the file to gitignore
  • import those variables at runtime
  • reset api key in google so that anyone that looks at this repo cant reuse key

write tests

explanation

make tests (pytest)

todo

  • install pytest and save to requirements.txt
  • capture all test cases as failing tests in test file
  • test that all producers are non blocking
  • test that all producers are concurrent
  • test that all consumers are non blocking
  • test that all consumers are concurrent
  • move timers, array of book search terms, into tests

exception handling

explanation

Some method are likely to throw an exception that will break the app. Example: aiohttp session get request could throw if a server is offline, 404, etc...

todo

session.get() http status codes

  • 404
  • 400
  • redirect
  • whatever else you can think of that's likely to happen
  • a catchall for whatever else we didn't think of
  • log all exceptions

logging

explanation

exceptions and other situations need to be logged for debugging

todo

  • setup python logger
  • log all exceptions

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.