Giter Site home page Giter Site logo

n-ziermann / restapy Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 0.0 75 KB

A python module for building restapis

Home Page: https://pypi.org/project/restAPY/

License: MIT License

Python 100.00%
python api-server api easy-to-use networking rest-api restapi postrequests tls ssl

restapy's Introduction

restAPY Tweet Open Source Love star this repo

alt text

A python module for building Rest APIs

Example

import restAPY
api = restAPY.API(80, “0.0.0.0”)
api.set_path(“/”, {“celsius”:5, “fahrenheit”:41})
api.run()

Done! Start the python file and you've got a working rest API.

Installation

Inside the terminal:

pip install restAPY

Inside your project:

import restAPY

Dependencies

Python 3.6 (or higher) with the following modules:

  • socket
  • threading
  • json
  • ssl

All of these are part of the default python install and therefore don't need to be installed separately.

Documentation

https://restapy.readthedocs.io/

Contributors

Niklas Ziermann

Copyright & License

© Niklas Ziermann

MIT License

restapy's People

Contributors

n-ziermann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

restapy's Issues

Cannot set HTTP Status Code to signal success/failure of request handling

The current code does not allow to set the HTTP status code for requests being handled. When implementing a function to handle a specific request, this function may provide a data structure that will be serialized into JSON, but the implementation cannot tell restAPY whether the function succeeded or failed in handling the request; restAPY will always return HTTP status 200 to the client.

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.