Giter Site home page Giter Site logo

luisviniciuslv / pyforgeapi Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 1.0 484 KB

PyForgeAPI is a fast, very simple to use and understand open source python library for developing RESTful APIs.

License: GNU General Public License v3.0

Python 100.00%
api api-rest python rest vitrinedev

pyforgeapi's Introduction

Sou um desenvolvedor que ama desafios e projetos criativos 🚀❤️

Desde os 16 anos estudo programação como um todo, fiz cursos de Python, Nodejs, MongoDB, entre outros. Minha área de preferência é Back-end, mas possuo amplo conhecimento na área do Front-end. Sou uma pessoa altamente motivada, curiosa, inovadora e orientada a resultados, buscando uma posição em uma empresa onde desenvolvedores são valorizados.

Linkedin: Luis Vinicius instagram: viinilv

Cursos e Certificados

  • Formação Desenvolvimento Web Full-Stack - 300h
  • NodeJS e MongoDB - 15h

🛠️ Tecnologias

pyforgeapi's People

Contributors

bielgomes avatar fadiinho avatar luisviniciuslv avatar

Stargazers

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

Watchers

 avatar

Forkers

fadiinho

pyforgeapi's Issues

[BUG] Received HTTP/0.9 when not allowed

I'm using the basic example from README

from PyForgeAPI import Routes, Response, Request

routes = Routes(debug=True)

@routes.get("/")
async def home(_: Request, res: Response):
    res.json({"message": "Hi"}).status(200).send()


routes.run(application="Person API", host="localhost", port=3000)

When I try to CURL the url, this happens:
image
And when using a browser, I get INVALID_HTTP_RESPONSE.
On debug mode it only logs the request, no errors.

[ENHACEMENT] Default host to `localhost` and port to `5000`

Why?

Usually when developing an api locally we set the host to localhost, so if we set the default to localhost it becomes more convenient.
And about the port it needs root privileges (on linux) to run on port 80, so same as the host, it becomes more convenient.
Usually the libraries to build apis defaults it to localhost and some port higher than 1024, flask for example here

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.