Giter Club home page Giter Club logo

hei's Introduction

hei - ⸢HTTP reimagined⸥

"黑虎拳 ~ greet. connect. respond."

bool(hei._pull_strings) is False

hei exists without contemporary constraints; (blazingly fast)
allowing you to fearlessly do; (blazingly fast)
what you could do before; (blazingly fast)

🔥🔥🔥

Installation

python3 -m pip install urllib3

Usage

  • ❎ Previously; (boo-hiss! ✗)
import urllib3 # C-h w "Je ne sais quoi"???

urllib3.request(
   "HEAD", 
   "https://python.org",
   headers = {"User-Agent": "urllib3"},
   fields  = {"foo": "bar"},
   json    = {"bar": "foo"},
)
  • ✅ The __future__ defines now; (zen ✓)
from hei import chi # symmetric; pythonic

c = chi() # sophisticated; cultured

(
   c.url("https://python.org") # it says curl; i am actually trembling
    .headers(user_agent = "hei§chi§ti§pi")
    .args(foo = "bar")
    .json(bar = "foo")
    .head()
)

New-wave debugging 🏄

The requirement of an explicit .send() in the request building pipeline allows us to avail of state-of-the-art repr'ing technologies;

Previewing requests before sending them along The Wire has never felt so pythonic;

(
   c.url("https://python.org")
    .args(foo = "bar")
    .cookies(session="abcde", id=539)
    .headers(x_secret_token="hihi")
    .json(this_is="PYTHON❣️!!!")
    .post()
)
{
  "url": "https://python.org",
  "method": "POST",
  "headers": {
    "User-Agent": "hei/chi/ti/pi",
    "Cookie": "session=abcde; id=539",
    "X-Secret-Token": "hihi",
    "Content-Type": "application/json"
  },
  "args": {
    "foo": "bar"
  },
  "data": {},
  "json": {
    "this is": "PYTHON❣️!!!"
  }
}

Testimonials

Andrew Clang, creator of:

  • "hei low friends."

Keno Kernighan, CTO of:

  • "Importing this module is like entering the matrix."

Alberta Einstein, inventor of:

  • hei = __import__("perfection").__mul__("a sea of").__pow__(2)

Amped Up Internet User, CFO of:

  • "Shipping this in production as we speak and never looked back. Total game changer. (I use arch btw)"

Ben Shiller, producer of:

  • "Would love to see how this compares to [INSERT MY PRODUCT HERE]."

Elaine Touring, founder of:

  • "This could be the most important code created since The Enigma."

Haskell Iverson, co-founders of:

  • "The closest to __enter__ that I've ever been, and I don't want to __exit__ right now."

The New.Forker(), executor of:

  • "If hei was found in the Sistine Chapel… it would not be out of place. #Hashtag Transcendental."

Jonathan Titor, aviator of:

  • "It's as if the future came back to show us what True Code™ really is."

Hughie Luis, composer of:

  • isinstance(hei, __import__("it's hip").__pow__(1+1))

Andy Rump, creator of:

  • "Nim's version is better."

Patricia Bateman, founder of:

  • "Dracula? Cherry MX DVORAK lettering? Let's see Craig Schwartz' neovim config file."

Lawrence Wall, curator of:

  • "Python shed skin; so that we could make hei."

Polly Glotten Mondrian IV, CMO of:

  • "If the Mona Lisa could walk into a Piet->Python transpiler… Out could walk hei.py #WhereDoesTheCodeBeginAndTheArtEnd"

Very Important Person, fabricator of:

  • "As someone who regularly does contract work for 3-letter agencies: This would never get past my code review."

DFH, author of:

  • "The endless joy that coding once gave me? Salutations, from Palau."

Matz Borenszweig, creators of:

  • "Just fell to my knees in a stack frame."

Craig Schwartz, CEO of:

  • "Have Craig Schwartz and Steve Jobs ever been seen in the same room? #MakesYouWonder"

FAQ

𝒒. 3 space indents? Shirley you cannot be serious?

Mayhaps the fountain of knowledge is yet to bestow itself upon the layperson:

You may be enlightened to know that the optimal indentation hypothesis was recently proven on HN.

There is said to be an Elliptical Indent PEP draft currently in the works and depending on who you ask, a very good chance it will become the new default starting from πthon 3.14.

𝒒. Surely that can't not be considered a rational viewpoint?

We're just trying to stay ahead of the curve, so to speak.

𝒒. Why don't you simply mount it locally with curlftpfs and use fossil as the primary interface?

We may have dropped the box on this one, but did you mean to ask that here?

𝒒. If you could define hei in 3 words, what would they be?

Malkovich. Malkovich. Malkovich.

𝒒. Would it be fair to surmise that hei could be looked at through the prism of prier?

Clever code is probably the worst code you could write.

𝒒. What would you say……… ya do here?

We take the API specs from the software engineers and bring them to the urllib3 library.

𝒒. Couldn't the software engineers go directly to the urllib3 library?

Engineers are not good at dealing with customers.

𝒒. Are you any relation to the pop singer?

No, it's just a coincidence.

𝒒. Do you like Huey Lewis & The News?

I celebrate the guy's entire catalogue.

𝒒. This literally feels Pulitzer-worthy. How many references does this README actually contain?

42

𝒒. What would you do if you had a million bitcoins?

2 GILs at the same time.

hei's People

Contributors

cmdlineluser avatar

Watchers

 avatar  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.