semvec/pypi-packages huggingface dataset:
tvtid 0.2.3
Library and cli tool for querying tvtid.dk
License: MIT
Requires Python: >=3.5

# TVTid

This is a Python library for interfacing with the unofficial API on `tvtid.tv2.dk`.

## Installation

`pip install tvtid`

## CLI

To get the schedule off a channel from now and forward

```bash
$ tvtid tv 2
Schedule for: TV 2
Date: 2017-09-12

[21:25] Fogeden kommer
[22:00] Nyhederne, Sporten og Vejret
[22:27] Regionale nyheder
...
```

To get the schedule at a specific date

```bash
$ tvtid -d 2020-01-14 dr2
Schedule for: DR2
Date: 2020-01-14

[05:15] Udsendelsesophør - DR2
...
[04:40] Kender du typen 2013
```

## Library Example
```python
import tvtid

client = tvtid.Client()
schedules = client.schedules_for_today()
channel_length = max(len(c.title) for c in client.channels().values())

for schedule in schedules:
    channel = schedule.channel
    aired, current, upcoming = schedule.current()

    if current:
        title = channel.title.ljust(channel_length, ' ')
        print('\n%s [%s] %s ' % (title, current.start_time.strftime('%H:%M'), current.title), end='')
        for program in upcoming[:3]:
            print('[%s] %s ' % (program.start_time.strftime('%H:%M'), program.title), end='')

# TV 2          [20:00] Fuld plade [21:15] Baby Surprise [23:05] Obsessed
# DR1           [20:00] X Factor [21:00] TV AVISEN [21:15] Vores vejr
# TV 2 Charlie  [20:30] Fede Finn i modvind [21:25] Fede Finn i modvind [22:15] En sag for Frost
# DR2           [20:45] VM håndbold: Kroatien-Norge, direkte [21:20] VM håndbold: Studiet [21:35] VM håndbold: Kroatien-Norge, direkte
# TV3           [20:00] Dagens mand [21:00] American Pie 2 [23:10] The Joneses
# …
```

## License
`tvtid` is published under the MIT license which can be read in the `LICENSE` file.
userkit 1.0.0
Python bindings for UserKit: user login and account management
License: MIT

# Python UserKit

## Summary
A UserKit client library for Python 3.

## Installation

You can use pip to install userkit:

```
pip install userkit
```

Or [download](https://github.com/workpail/userkit-python/archive/master.zip), then copy or symlink the `userkit-python/userkit` sub-directory into
your project.

## Documentation

For full examples and docs checkout [UserKit documentation][userkit-docs].

## Example usage

```python
import userkit
uk = userkit.UserKit("<YOUR_APP_SECRET_KEY>")

# Create a user
user = uk.users.create_user(email="jane.smith@example.com",
                            password="secretpass")

# Fetch a user
user = uk.users.get_user("<USER_ID>")

# Update a user
user = uk.users.update_user("<USER_ID>", name="Jane Smith")

# Login a user
session = uk.users.login_user("jane.smith@example.com", "secretpass")

# Fetch a logged in user by their session-token
user = uk.users.get_current_user(session.token)
if user:
    print("User is logged in:")
    print(user)
else:
    print("No logged in user, invalid session token")
```

## Test

To run tests you need to create a test-app.

Set the `USERKIT_KEY` environment variable to your test app key, then
run python's unittest:
```
USERKIT_KEY=<YOUR_APP_SECRET_KEY> python -m unittest discover
```


[userkit-docs]: https://docs.userkit.io