Comments (2)
odict works pretty well for me.
On Wed, May 15, 2013 at 3:54 PM, Mitch Garnaat [email protected]:
We want to use OrderedDict to preserve the order of the keys in the JSON
files but 2.6 doesn't have it in stdlib. Need to workaround that and also
then use simplejson on 2.6 to use the object_pairs_hook which json in 2.6
does not support.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/51
.
Chris Moyer
from botocore.
Man, I was really hoping to do this without conditional install_requires
but I'm not seeing a good way to do this.
I was planning on just vendoring Hettinger's OrderedDict
backport into botocore and adding simplejson
to the required packages to install because it works with python2 and python3. However simplejson
doesn't work with python3.2 so this isn't really an option. I'm guessing we can just do a conditional install_requires
for ordereddict and simplejson for python2.6? We might also want to include simplejson for python2.7 as well because it's much faster than the stdlib json module:
$ python --version
Python 2.7.3
$ python -m timeit -s 'import json' 'json.load(open("data/aws/ec2.json"))'
10 loops, best of 3: 22.3 msec per loop
$ python -m timeit -s 'import simplejson' 'simplejson.load(open("data/aws/ec2.json"))'
100 loops, best of 3: 8.46 msec per loop
You guys have any other suggestions? Otherwise I'll update install_requires
. We'll also need to work something out for the requirements.txt file as well.
from botocore.
Related Issues (20)
- Use built-in fromisoformat instead of python-dateutil HOT 1
- Incorrect appconfigdata endpoint for FIPS in us-gov regions HOT 2
- SSO OIDC client should not attempt to contact AWS metadata HOT 4
- "TypeError: can't compare offset-naive and offset-aware datetimes" when fetching credentials via iam-role HOT 14
- Identical data is loaded into every session wasting memory HOT 3
- client.py : _resolve_endpoint_ruleset returns 3 values instead of 2 HOT 3
- Lambda python 3.11 does not start with current boto 1.33.2 HOT 29
- ImportError: cannot import name 'is_s3express_bucket' from 'botocore.utils' HOT 3
- botocore using deprecated datetime.datetime.utcnow() call HOT 2
- Bucket validation cannot handle project:bucketname syntax for openstack type of s3 HOT 2
- route53resolver endpoints have incorrect required argument: CreatorRequestId HOT 1
- SageMaker client's FIPS endpoint incorrect in us-gov-west-1 HOT 2
- botocore does not ignore credential_process when that configuration value is blank (empty string)
- get_available_regions does not return ec2 for the new region ca-west-1 HOT 5
- ImportError: cannot import name 'is_s3express_bucket' from 'botocore.utils' python 3.9 HOT 3
- Credentials JSONFileCache explodes if cache file has malformed JSON HOT 1
- Add 'readinfo' shim to botocore.response.StreamingBody
- Allow $AWS_PROFILE to be blank
- When uploading, checking 'Expect' header results in "TypeError: sequence item 0: expected str instance, bytes found" HOT 46
- Support urllib3 2.1.0 and 2.2.0 to be installed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botocore.