Skip to main content

usr

USR: Unix Style Request — Axios with a Unix vocabulary HTTP client.

Install

pip install usr

Quick start

from usr import *

res = cat("https://api.site.com/users")
print(res.status, res.data)

touch("https://api.site.com/users", {"name": "Ada"})
sed("https://api.site.com/users/42", {"active": False})
rm("https://api.site.com/users/42")

Flags

Structured keyword form or a curl-like command-line string:

cat("https://api.site.com/me", H="Authorization: Bearer TOKEN", m=5)
# or
cat("-H 'Authorization: Bearer TOKEN' -m 5 https://api.site.com/me")

Pipes (real | operator)

names = cat("https://api.site.com/users") | grep(active=True) | cut("name") | head(5)

Scoped client

api = cd("https://api.site.com", H="Authorization: Bearer TOKEN")
me = api.cat("/me")

Async

from usr import aio

res = await aio.cat("https://api.site.com/users")

Metadata

Release files for unixsr 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unixsr 0.0.1
File Size Uploaded Provenance Actions
unixsr-0.0.1.tar.gz 17.1 kB Without provenance Details for unixsr-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unixsr 0.0.1
File Interpreter ABI Platform Actions
unixsr-0.0.1-py3-none-any.whl Python 3 none any Details for unixsr-0.0.1-py3-none-any.whl

Total release size: 41.2 kB

Release files / unixsr-0.0.1.tar.gz

Download URL unixsr-0.0.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0337d37a2e82e2aade1310df2566804244ce9e918a469b16fef50633a79be451
BLAKE2b-256 checksum
How to use checksums
f893234b79cd98b3e83544b2444bd402096cf81a8ee6336c2c80b8f39032f57e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / unixsr-0.0.1-py3-none-any.whl

Download URL unixsr-0.0.1-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70dc3b7a88950bb30da5993a9488f3c7a7a0d2d5d69c05aec195cd27da8f3acc
BLAKE2b-256 checksum
How to use checksums
441ece1d305de44a78bb80e976a01348acc432b8e08338b35b32b317e31f1d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for unixsr 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page