acode / lib-python Goto Github PK
View Code? Open in Web Editor NEWAutocode standard library Python bindings
License: MIT License
Autocode standard library Python bindings
License: MIT License
This library should have a basic test suite.
Hello! Really interested in what you guys are doing with stdlib.
Just for the record - I'm a little concerned about the module name lib
. I think a lot of developers use that as an internal module name, so it might be a problem.
I'm guessing you guys have thought about this, so just wondering what your thoughts are on this and if it's up for debate?
I am trying to import the lib package in my python application and it seems to run into a problem where the package has a bug (as shown below)
ERROR:tornado.application:Uncaught exception POST /image?
...
Traceback (most recent call last):
...
File "/usr/local/lib/python2.7/dist-packages/lib/__init__.py", line 136, in __call__
body = self.__py2body__(args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/lib/__init__.py", line 204, in __py2body__
a.push(value)
AttributeError: 'list' object has no attribute 'push'
All I am doing is from lib import lib
.
Is this a known problem? I am running this in a docker container where I run:
pip install lib
on it.
Hi, I am getting the above error when running a script using lib. Please help.
Name: lib
Version: 4.0.0
Summary: Autocode standard library Python bindings
Home-page: https://github.com/acode/lib-python
Author: Keith Horwood
Author-email: [email protected]
License: MIT
Location: /root/.local/lib/python3.6/site-packages
Requires:
Required-by:
Hey in the README , we saw only the lib greet function. Please explain it fully how it works, how to install, the available functions etc
Hey, so I started trying to use the library and was encountering a few SSL errors.
lib=4.0.0
OpenSSL v1.1.1c
Tried with python 3.6.4, and python 3.7.4
The first error I was getting was:
self._sslobj.do_handshake()
ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:777)
Without updating my code or changing anything it is now displaying a different SSl error:
self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)
I've tried two ways, both return the same SSL Wrong Version Number.
First:
lib.cfg['token'] = 'MY_TOKEN'
HaloAPI = lib.halo.infinite['@0.2.0']
result = HaloAPI.stats.matches.list(gamertag='citizen kwho')
pprint(result)
Second:
url = 'https://halo.api.stdlib.com/[email protected]/stats/matches/retrieve/'
params = {
'id': '26829e9a-7fab-4c2b-ac28-a62360e55946',
'Content-Type': 'application/json'
}
headers = {
'Authorization': f'Bearer {dev_token}'
}
response = requests.get(url, params=params, headers=headers, verify=False)
pprint(response.json()
I then tried to see if the URL would resolve in my browser expecting a 401 error since I didn't pass my token and got an SSL error there as well. I can't tell exactly if this error is with the acode python bindings, or more specifically with the halo.api.stdlib API itself. Any additional input would be appreciated.
Update:
After additional poking and prodding, I cleared my cache and was able to get a 200 response using the gateway method using requests. But the Acode lib-python library still gives me a SSL wrong version error.
It seems to have only worked one time though, and is back to providing the SSL wrong version error again.
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.