codeforamerica / three Goto Github PK
View Code? Open in Web Editor NEWAn easy-to-use Python wrapper for the Open311 API.
Home Page: three.codeforamerica.org
License: BSD 3-Clause "New" or "Revised" License
An easy-to-use Python wrapper for the Open311 API.
Home Page: three.codeforamerica.org
License: BSD 3-Clause "New" or "Revised" License
https://github.com/codeforamerica/three/blob/master/three/cities.py#L112-L120
produces a 404. I think these two sections need to update endpoint
to
https://mobile311.sfgov.org/open311/v2/
https://pypi.org/project/three/ appears to be on 0.8.0 circa 2013
It would be awesome to get in touch with the maintainer https://pypi.org/user/zachwill/ and publish a new tag of master here, which supports python 3 (specifically the ifilter to filter update).
If anyone rolls through here trying to add this to pip dependencies, just add this to your requirements file:
git+https://github.com/codeforamerica/three.git@67b4a4b233a57aa7995d01f6b0f69c2e85aea6c0#egg=three
Have you seen slumber? http://slumber.in/ It's a cool little wrapper around requests and does a lot of what you're doing here.
I don't know enough about the Open311 API to do this myself quickly, but you'd prob want to grab this pull req: samgiles/slumber#11 b/c the open311 api seems to throw a ton of stuff at the root level.
No matter what is set the count
to or the page_size
to for the Three.requests
method the returned list is always 1000 items long.
Apologies if this is an issue on my end, but I am not quite sure.
it seems pretty common that the discovery url is not in the same path as the endpoint. When that's true, it would be nice to be able to specify an alternate discovery url in the cities dictionary.
Example:
requests = city.requests(start='01-01-2012')
File "build/bdist.macosx-10.7-intel/egg/three/core.py", line 175, in requests
File "build/bdist.macosx-10.7-intel/egg/three/core.py", line 85, in get
File "build/bdist.macosx-10.7-intel/egg/three/core.py", line 99, in _get_keywords
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.