fastly
A Python Fastly API client library
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and provides comprehensive API coverage for Fastly platform automation. It is well-suited for teams already using Fastly who need programmatic control over their CDN configuration. No known vulnerabilities as of the latest security scan.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Fastly API token; set via configuration.api_token or FASTLY_API_TOKEN environment variable.
- Low install friction with only two lightweight runtime dependencies (python-dateutil and urllib3).
- Actively maintained with a recent release 28 days ago and ongoing repository activity.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2026-07-17 (28 days) · last repo commit 2026-07-17 · 77 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 87,681 downloads/mo, #13,776 on PyPI
Alternatives
Verify before relying
pip install fastly
import fastly
from fastly.api import acl_api
configuration = fastly.Configuration()
configuration.api_token = 'YOUR_API_KEY'
with fastly.ApiClient(configuration) as api_client:
api_instance = acl_api.AclApi(api_client)
api_response = api_instance.create_acl('service_id', 1, name='test-acl')- Completeness of API endpoint coverage relative to the full Fastly API surface.
- Performance characteristics and rate-limiting behavior for high-volume operations.
- Backward compatibility guarantees across major version updates.
What it is and what it does
fastly is an official Python client for the Fastly CDN and edge computing platform API. It wraps Fastly's REST endpoints in a typed, object-oriented interface, allowing developers to programmatically create and manage services, configure caching rules, manage access control lists, set up backends, and handle billing operations without writing raw HTTP requests.
The library requires Python 3.6 or later and depends only on python-dateutil and urllib3 for date handling and HTTP transport. It uses a context-manager pattern for API clients and raises fastly.ApiException for error handling. Most operations require authentication via an API token, which can be supplied directly or read from the FASTLY_API_TOKEN environment variable.
Use it for
- Automate Fastly service provisioning and configuration in CI/CD pipelines or infrastructure-as-code workflows.
- Programmatically manage ACL entries and access control rules for dynamic IP allowlisting or blocking.
- Query billing and invoice data to integrate Fastly costs into internal billing systems or dashboards.
- Build monitoring or operational dashboards that pull real-time service status and configuration from Fastly.
- Bulk update backend origins or routing rules across multiple Fastly services in a single script.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive MIT license, and provides comprehensive API coverage for Fastly platform automation. It is well-suited for teams already using Fastly who need programmatic control over their CDN configuration. No known vulnerabilities as of the latest security scan.
Install
fastly on PyPI
Before you install
Low install friction with only two lightweight runtime dependencies (python-dateutil and urllib3). Actively maintained with a recent release 28 days ago and ongoing repository activity.
Requires a valid Fastly API token; set via configuration.api_token or FASTLY_API_TOKEN environment variable.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install fastly
import fastly
from fastly.api import acl_api
configuration = fastly.Configuration()
configuration.api_token = 'YOUR_API_KEY'
with fastly.ApiClient(configuration) as api_client:
api_instance = acl_api.AclApi(api_client)
api_response = api_instance.create_acl('service_id', 1, name='test-acl')
Verify before relying
- Completeness of API endpoint coverage relative to the full Fastly API surface.
- Performance characteristics and rate-limiting behavior for high-volume operations.
- Backward compatibility guarantees across major version updates.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespython-dateutilurllib3 |
| Maintenance | Actively maintained 28 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 87,681 / month, #13,776 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: fastly-14.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fastly api client python”
- fastlyA Python client library for the Fastly API, providing programmatic…
- django-gripIntegrates Django with GRIP-compatible proxies (Pushpin, Fastly…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also cudo-compute · contentful · alibabacloud-cdn20180510 · asana · volcengine-python-sdk · py-consul · datadog-api-client · recurly · python-barbicanclient · httplib2