Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

OpenSource Parental Freedom Platform

Project description

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)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for allow2, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size allow2-0.3.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page