Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allow2/allow2python

Allow2 Python SDK for OpenSource Parental Freedom
https://github.com/allow2/allow2python

child children control controls family freedom gaming iot limit limits parent parental parental-control pip python quota social social-network time time-limit

Last synced: about 2 months ago
JSON representation

Allow2 Python SDK for OpenSource Parental Freedom

Awesome Lists containing this project

README

        

Allow2
------

pip install allow2

refer to https://github.com/Allow2/Allow2.github.io/wiki for more details.

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)