teamschools / powerschool Goto Github PK
View Code? Open in Web Editor NEWAPI client for PowerSchool
License: GNU General Public License v3.0
API client for PowerSchool
License: GNU General Public License v3.0
powerschool/powerschool/__init__.py
Line 81 in b8580d2
powerschool/powerschool/utils.py
Line 17 in c8cd708
I'm getting this error:
raise MissingTokenError(description="Missing access token parameter.")
oauthlib.oauth2.rfc6749.errors.MissingTokenError: (missing_token) Missing access token parameter.
was hoping the answer was this simple but it was not resolved
[https://stackoverflow.com/questions/54083943/oauth-facebook-missingtokenerror-missing-token-missing-access-token-paramet]
powerschool/powerschool/__init__.py
Line 137 in b8580d2
powerschool/powerschool/__init__.py
Line 57 in b8580d2
There's some fairly weird behavior when trying to access tables with non-lowercase names. For example (where ps() returns a PowerSchool() instance):
>>> ps().get_schema_table('GradeScaleItem').query()
[None, None, None, ... (one for each row in GradeScaleItem)]
This appears to be happening because, while PowerSchool smiles tolerantly and returns the results you'd expect, the keys in its response are still all lowercase, as in:
{
'name': 'GradeScaleItem',
'record': [
{
'id': 1,
'tables': {'gradescaleitem': { (record keys/values) }}
},
...
]
}
As a result, the second get() call at client.py:243 fails to find a match and returns None (because self.name
differs from the result's value in case):
data.append(r.get("tables").get(self.name))
Whether this should be "fixed" by case-smashing the table name (self.name.lower()
or so) and/or the keys in the result, or just documented in the future (when there exists documentation), I don't know.
I would like to use this module to do work with PowerSchool. Giving it a test run I've ran into this error:
AttributeError: partially initialized module 'powerschool' has no attribute 'PowerSchool' (most likely due to a circular import)
powerschool/powerschool/__init__.py
Line 113 in 9cc7281
only while loop, allow input for all vars
powerschool/powerschool/utils.py
Lines 60 to 78 in edae67a
c'mon man!
powerschool/powerschool/__init__.py
Line 137 in b8580d2
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.