semvec/pypi-packages huggingface dataset:
psycopg2-logical-decoding-json-consumer 2.6.1
Asynchronous PostgreSQL logical replication consumer library for the logical-decoding-json logical decoding output plugin

PsycoPG2-Logical-Decoding-JSON-Consumer
=======================================

psycopg2-logical-decoding-json-consumer is an asynchronous library that consumes
PostgreSQL logical replication created by the logical-decoding-json output
plugin.

The library supports fast filtering of events and allows individual transactions
to be acknowledged out of order.

Transactions can be read one-by-one with read_transaction(), or collected in
batches (simplifying de-duplication) with read_transaction_batch()
lastfm-py 0.0.12
An asynchronous LastFM API wrapper

# lastfm-py
An asynchronous Python Last.FM API wrapper

## Installation

This project will be on PyPi once it is functional

Linux
```sh
python3 -m pip install -U lastfm-py
```
Windows
```sh
py -m pip install -U lastfm-py
```

## Examples

### Getting a user's recent scrobbles
```Python
import lastfm
import asyncio

client = lastfm.Client('client_key') # Replace with your client key (client_secret is optional)

async def main():
    recent_tracks = await client.get_recent_tracks("username", limit=5)
    print(recent_tracks[0].title) # prints the title of the users most recently scrobbled track

asyncio.run(main())
```