zebrafishlabs / fastly-python Goto Github PK
View Code? Open in Web Editor NEWA Python client library for Fastly.
License: BSD 2-Clause "Simplified" License
A Python client library for Fastly.
License: BSD 2-Clause "Simplified" License
Does anyone know why these don't work?
services = client.list_services()
# Why do only some of these work?
print services[0].id # Works
print services[0].name # Works
# print services[0].version # Doesn't work
# print services[0].versions # Doesn't work
# print services[0].updated_at # Doesn't work
print "-----------"
# But all of these work fine
print services[0]._data.get('id', None)
print services[0]._data.get('name', None)
print services[0]._data.get('version', None)
print services[0]._data.get('versions', None)
print services[0]._data.get('updated_at', None)
Would be great if there were 2 lines in the readme about how to install this library.
Fastly will begin requiring an API key to be present in purge by key requests starting mid October.
This means that requests to the endpoint - POST https://api.fastly.com/service/:id/purge/:key
will require a Fastly-Key
or X-Fastly-Key
header to be present and contain the correct key.
After browsing source, it looks like if a user is not fully authed, the existing implementation will work, but if the user is fully authed only the cookie is passed, not the API key - see purge_service_by_key and _fetch.
If it helps, you can check out how we handle this in other clients by looking at these PR's in fastly-py and fastly-ruby
Hi,
Sorry to be so direct, but is this repo still being actively maintained I notice a few pull requests that still haven't been merged, etc. Thanks,
Just came across this project and wondering how it relates to Fastly's official one (e.g. is this one more feature complete? is it Python 3 compatible?) and thought it might deserve a line or two in the README.
Also, it looks like this project is almost exactly the same as https://github.com/obulpathi/cdn-fastly-python (which is the repo linked to from https://pypi.python.org/pypi/cdn-fastly) but there's nothing on either of them indicating what the relationship is between them either. Is one a fork of the other? Is one no longer maintained?
Thanks.
create_header
wants a source and destination parameter, while update_header
wants a src
and dst
. Can those be changed to be the same?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.