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

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.2
File Size Uploaded Provenance Actions
unixsr-0.0.2.tar.gz 17.1 kB Without provenance Details for unixsr-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 41.2 kB

Release files / unixsr-0.0.2.tar.gz

Download URL unixsr-0.0.2.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
38f1052d7b12b7e42e14b12b906d3edb2b21b888ae03adffa332d78f269b9bc8
BLAKE2b-256 checksum
How to use checksums
dfdc8798647b211400fcf76b950a401795e66af0689093bf694ce6c2e5b6daee
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.2-py3-none-any.whl

Download URL unixsr-0.0.2-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa9b22156444d894aa82ec22e93fc05c58b523ea6a29da414190e6497ba4b2d6
BLAKE2b-256 checksum
How to use checksums
ee7d1e11fe9421fdbfd64f6592aaf7ed692bc8e6612d3bd4cd6792720a6f48b2
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.2

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