Git Product home page Git Product logo

fastly-python's People

Contributors

acmcelwee avatar aranhoide avatar aspires avatar copyconstruct avatar davidbirdsong avatar gschorkopf avatar katiesandford avatar paulstraw avatar simonkuhn avatar tfheen avatar thommahoney avatar tonytan4ever avatar zacman85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastly-python's Issues

Service object inconsistency?

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)

Purge by key will require an API key to be present

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

more explanation in README

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.