atveit / amplitude-python Goto Github PK
View Code? Open in Web Editor NEWPython API for Amplitude Analytics Logging - https://amplitude.com
License: Apache License 2.0
Python API for Amplitude Analytics Logging - https://amplitude.com
License: Apache License 2.0
Hi @atveit and thanks so much for your efforts in building this library. I was wondering if you are planning to support the new v2 API anytime soon.
Thanks so much!
When checking if we have a valid user_id
like so:
def _is_None_or_not_str(self,value):
if value is None or type(value) is not str:
return True
...we are missing Unicode strings, which are the default in Python 3 and very common earlier. What about this?
def _is_None_or_not_str(self,value):
if value is None or not isinstance(value, basestring):
return True
Would that be reasonable?
amplitude-python/amplitude/__init__.py
Line 69 in ed703d7
even though user_properties
is mentioned in the code comment, but when it's passed in as argument it is omitted.
I have a PR that fixes it. #5
This library is very old.
It's uses testtools
which uses unittest2
which uses and older version of argparse
before it got introduced into python officially (Back when it was only here - https://github.com/bewest/argparse)
Causing this issue:
argparse.ArgumentParser('PROG', allow_abbrev=True)
3.6.8 (default, Aug 2 2019, 17:42:44)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
Traceback (most recent call last):
File "<console>", line 1, in <module>
TypeError: __init__() got an unexpected keyword argument 'allow_abbrev'
If you use this on elastic beanstalk
you would encounter an error.
Solution probably to fork it and update the package
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.