Allow2
pip install allow2
Before the app/device can log any actions or check permissions/etc, you need to first “pair” the device or app:
>>> import allow2 >>> >>> userId, pairId, children = allow2.pair(user, password, deviceToken, deviceName)
The userId and pairId are used for all subsequent requests to the API and will work only while the device/app remains paired, so these values should be persisted.
If the parent that owns that account deletes the pairing, then the userId / pairId credentials will no longer work.
The “children” return value is an array of all current children definitions in that account when it is paired. You can use this to show the parent an interface to nominate the one permanent child who will use this device/app. Alternately, you can present a selector and use the PIN on each account to allow the child to directly select and unlock their account prior to using the device or app.
Then, to record usage and get permissions and blocks/etc, use the following:
>>> import allow2 >>> >>> ???? = allow2.log(userId, pairId, [activityId, ...], childId)
That will…. (TBC)
Metadata
Release files for allow2 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| allow2-0.3.tar.gz | 2.3 kB | Without provenance | Details for allow2-0.3.tar.gz |
Release files / allow2-0.3.tar.gz
| Download URL | allow2-0.3.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a6757fdf006d79c1c30043c1031de531c930895d8b479af8c22a640f444a282
|
|
BLAKE2b-256 checksum How to use checksums |
d796a75d5bffd626e17325e22d13a68ad042a6f49e159b9331eb1b2d7201d972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for allow2 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.