Git Product home page Git Product logo

tinyhttpie's Introduction

TinyHTTPie

This repository contains the code to the multi-part series "The Evolution of a Script".

Each branch contains the code of the HTTP client tinyhttp at a different stage of its development. But don't forget that this repository is meant to be a tutorial about python packaging, so if you just need an awesome http client, use HTTPie ๐Ÿ˜ƒ

Contents

  1. A Simple Script
  2. Sys Module
  3. Argparse Module
  4. Distribution via install.sh
  5. Distribution via setup.py
  6. Testing and CI
  7. Documentation
  8. Publishing at PyPI
  9. Publishing at Anaconda

The version of tinHTTPie within this main branch is the most advanced version.

Installation

Can be easily downloaded, built and installed via pip.

pip install git+https://github.com/NiklasTiede/tinyHTTPie

Example

Some GET requests from the command line.

โฏ tihttp -H google.com
Cache-Control: private, max-age=0
Content-Encoding: gzip
Content-Length: 5649
Content-Type: text/html; charset=ISO-8859-1
Date: Sat, 20 Feb 2021 17:08:42 GMT
...

โฏ tihttp -B http://jsonplaceholder.typicode.com/todos?id=1
[
  {
    "userId": 1,
    "id": 1,
    "title": "delectus aut autem",
    "completed": false
  }
]

I hope you will find something useful for yourself, I'm thankful for every pull request regarding bugs, typos etc. ๐Ÿ˜ƒ

tinyhttpie's People

Contributors

niklastiede avatar

Stargazers

 avatar

Watchers

 avatar

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.