semvec/pypi-packages huggingface dataset:
time-cord 0.1.0
A Python library for time management tools for Discord
Requires Python: >=3.6

# Quantify & take control of time spent on Discord
## About timecord

time-cord is a library that:
- Tracks time spent on Discord
- Tracks time spent on specific servers & channels

Currently only Mac OS is supported.

#### Areas for improvement:
- Support for non-Mac OS devices

#### Dependencies:
- Pillow
- Easyocr
- tendo
- tzlocal

With the rise of Discord as a platform for teams and friend groups alike, it's important to watch your time management on the platform. There are no current apps specifically for discord time management, so this library aims to fill that gap.  

## Contributing to timecord

If you have suggestions for improving or extending this project, please submit a pull request or issue!

## Installation

This library can be installed through pip: just type the command  ``pip install time-cord``.
django-rest-framework-jet 0.0.6
JET - Django APP
Requires Python: >=3.6

=====
Rest Framework JET
=====

Rest Framework JET is a Django app to manage authentication. It can create tokens, verify and refresh them.

Detailed documentation is in the "docs" directory.

Quick start
-----------

1. Install Django Rest Framework.

2. Add "rest_framework_jet" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        'rest_framework_jet',
    ]

3. Configure JET

    REST_FRAMEWORK = {
        'DEFAULT_AUTHENTICATION_CLASSES': (
            'rest_framework_jet.authentication.JETAuthentication',
        )
    }

    GLOBAL_JET = JET(
        SECRET = SECRET_KEY
    )

4. Include the rest_framework_jet URLconf in your project urls.py like this::

    url(r'^api/token-auth/', generate_jet),
    url(r'^api/token-verify/', verify_jet),
    url(r'^api/token-refresh/', refresh_jet),

5. Start the development server

6. Visit http://127.0.0.1:8000/api/token-auth/
   to authenticate a user and generate a valid token.
json-encrypted-token 0.0.6
JET - JSON Encrypted Token
Requires Python: >=3.6

# jet-python
JSON Encrypted Token - Python module

```python
from jet import JET
from jet.utils import hmac_sha256


GLOBAL_JET = JET(
    SECRET = 'my-secret-string'
)

user_secret = hmac_sha256('user-password', 'user-password', 'ascii')

payload = {
    'id': 1,
    'message': "Hola"
}

# Generate token
token = GLOBAL_JET.encrypt(user_secret, payload)

# Get info on token
decrypted_meta, decrypted_payload = GLOBAL_JET.decrypt(user_secret, token)

# Get info on token without user_secret
decrypted_meta, decrypted_payload = GLOBAL_JET.decrypt_from_PK(token)

# Verify token
verified_sign = GLOBAL_JET.is_valid_token(token)
print("Token is valid? ", verified_sign)

# Refresh token
new_token = GLOBAL_JET.refresh_token(token)
print("Token == New Token ", token == new_token)

```