Skip to main content

Fido

https://travis-ci.org/Yelp/fido.svg?branch=master https://coveralls.io/repos/Yelp/fido/badge.svg PyPi version

Introduction

Fido is a simple, asynchronous HTTP client built on top of Crochet, Twisted and concurrent.futures. It is intended to be used in environments where there is no event loop, and where you cannot afford to spin up lots of threads (otherwise you could just use a ThreadPoolExecutor).

Here is an example of using Fido:

future = fido.fetch('http://www.foo.bar')
# Work happens in a background thread...
response = future.result(timeout=2)
print response.body

Frequently Asked Questions

Do you support SSL?

Yes, although this has not been vetted by security professionals. One should use this functionality at their own risk. In more detail: Fido uses the Twisted defaults, which delegate to pyOpenSSL and service_identity for the actual SSL work.

Is the API stable?

Probably not. However, it is currently very simple, so it shouldn’t be hard to upgrade code if there’s a non backwards-compatible change.

Do I need to initialize Crochet?

No, crochet.setup is automatically invoked by fido.fetch.

How do I use an http_proxy?

Just set the http_proxy (all lowercase) environment variable to the URL of the http proxy before starting your python process.

Example:

$ export http_proxy="http://localhost:8000"
$ python -c "import fido; print fido.fetch("http://www.yelp.com").result().body

Installation

Fido can be installed using pip install, like so:

$ pip install --upgrade fido

License

Copyright (c) 2015, Yelp, Inc. All rights reserved. Apache v2

Metadata

Release files for fido 1.1.4

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

Source distribution (sdist)

Source distribution for fido 1.1.4
File Size Uploaded Provenance Actions
fido-1.1.4.tar.gz 4.5 kB Without provenance Details for fido-1.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fido 1.1.4
File Interpreter ABI Platform Actions
fido-1.1.4-py2-none-any.whl Python 2 none any Details for fido-1.1.4-py2-none-any.whl

Total release size: 9.4 kB

Release files / fido-1.1.4.tar.gz

Download URL fido-1.1.4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
251158b4f04a2eca3b5cf18129e19babe7af70a76de87277e30c42e487d87c3a
BLAKE2b-256 checksum
How to use checksums
c05e544d07f140f6ca2b9d4420728b5fbcd72cd7778079d2aa1ef97cd25242a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fido-1.1.4-py2-none-any.whl

Download URL fido-1.1.4-py2-none-any.whl
Size 4.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
edbb3407f103b4ad1770483ab4779f7ff2a7d2b2f623a6bdfd8114ea175adc89
BLAKE2b-256 checksum
How to use checksums
f13ddafd10a190683dd34a9316a314648e28e3a9bf2e2ea15058bd2e1331b3a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for fido 1.1.4

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