Registry / http-networking / fastly

fastly

JSON →
library13.1.0pypypi✓ verified 81d ago

Official Python client for the Fastly API. Version 13.1.0 supports all Fastly services (CDN, compute, logging, etc). Requires Python >=3.6. Actively maintained with monthly releases.

pip install fastly
INSTALL
IMPORT
SIG · FASTLY
F
fastly
http-networkingpythonv13.1.0
Install
3.0s avg
Import
Disk
49MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v13.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 49MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.0s · import 0.000s · 49MB
49MB installed
● package 49MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ApiClient
from fastly import ApiClient
from fastly import Fastly

Initialize client and list services.

from fastly import Fastly api_token = os.environ.get('FASTLY_API_TOKEN', '') client = Fastly(api_token=api_token) print(client.services.list())
fastly --version
Debug
Known issues
breakingIn v12+, the client no longer accepts positional arguments for api_token; must use keyword argument.
fix
Use Fastly(api_token='your_token') instead of Fastly('your_token').
affects: >=12.0.0
gotchaAPI token must be set via environment variable FASTLY_API_TOKEN or passed directly; if neither, client issues unauthenticated requests.
fix
Always provide api_token either via env var or constructor arg.
affects: all
deprecatedThe method _request() is deprecated since v11; use client.request() instead.
fix
Replace client._request(...) with client.request(...).
affects: >=11.0.0
Upgrade
Version history
13.1.0latest on PyPI · released Mar 31, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Amazon
1
Resources
fastly — pip install fastly · libregistry