Giter Site home page Giter Site logo

vintasoftware / python-api-checklist Goto Github PK

View Code? Open in Web Editor NEW
335.0 9.0 35.0 76 KB

Useful checklist for building good Python library APIs, based on "How to make a good library API" PyCon 2017 talk.

Home Page: https://devchecklists.com/python-api-checklist/

python api-rest

python-api-checklist's Introduction

alt text

Python API Checklist

Adding a New Language:

  • To add a new language you will need to create another markdown file containing the new acronym language:
    • E.g. checklist-pt.md.
  • No further approval will be necessary;
  • The new checklist language should be visible on Devckecklists after you saved the file on your repository.

Important Notes:

  • Markdown is the only way to write checklists on Devchecklists;
  • For tips about how to use markdown to write checklists, please take a look at these raw files:
  • Changes on the checklist repository will reflect on the current checklist of Devchecklists.

Commercial Support

alt text

This project, as other Vinta open-source projects, is used in products of Vinta clients. We are always looking for exciting work, so if you need any commercial support, feel free to get in touch: [email protected]

Copyright (c) 2018 Vinta Serviços e Soluções Tecnológicas Ltda. MIT License

python-api-checklist's People

Contributors

archatas avatar felipefarias avatar filipeximenes avatar fjsj avatar maikroeder avatar mingrammer avatar mycognosist avatar rajatkhanduja avatar themushrr00m avatar yammesicka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-api-checklist's Issues

Clear all button

To clear checked inputs. Important to have a dialog confirmation before doing it.

Heroku down [as of 2019-02-09]

Hi,

Just noticed that the website is down: https://devchecklists.com/python-api-checklist/

It returns HTTP 503 with the following:

Application error

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail 

ideas for useful additions

some ideas:

  • use keyword-only arguments for any function argument with a non-obvious meaning, e.g. a function that fetches "items" (whatever those may be) from a url, but can optionally take a timeout should use def fetch_items(url, *, timeout=...) to force the caller to be explicit. this makes code that calls this function much simpler to read. "explicit is better than implicit."

  • never use True/False return values to indicate success or failure. instead, raise an appropriate exception when things go wrong, and if the function succeeds, return either nothing (side effect only) or a meaningful value. this is especially important for security-sensitive apis, e.g. verify_signature(data, sig) should always raise an exception since a status code is easy to ignore, which may lead to serious bugs.

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.