Skip to main content

Felix' library

Project description

libfelix

Felix' library of snippets.

  • few dependencies
  • keep it simple

Installation

uv add libfelix
uv add libfelix[full]

libfelix.git

>>> from libfelix.git import Repo
>>> r = Repo('.')
>>> r.head
'9e260ece8558ba9a6c4ad6a9c89905630fe0140b'

libfelix.music 1

Controls music players via dbus (org.mpris.MediaPlayer2.Player) and scores them based on a simple heuristic (see score_players in libfelix/music/api.py).

$ music --help
Usage: music [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  Next
  PlayPause
  Previous
  players

libfelix.logging

Opinionated settings for Structlog:

  • log to STDERR
  • configure the log level by setting the environment variable LOGLEVEL
from libfelix.logging import configure_structlog_console_from_env, get_logger

configure_structlog_console_from_env()
log = get_logger()
log.info('...')

libfelix.rename_scans 1

Renames scanned PDFs (from the M365 Android app and shared via KDE Connect) in a directory to a sane format.

felix-kdeconnect-rename-scans ~/Downloads/kdeconnect/

Development

mise trust
mise install
prek install -f
uv sync --all-extras

# to add a dependency to full
uv add --extra=full boto3
  1. libfelix[full] is required for this feature 2

Project details


Download files

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

Source Distribution

libfelix-1.4.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libfelix-1.4.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file libfelix-1.4.0.tar.gz.

File metadata

  • Download URL: libfelix-1.4.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for libfelix-1.4.0.tar.gz
Algorithm Hash digest
SHA256 014acd3b42a32404a3e9969f27f753b115d37db6b6ba375293eebe7b7794fd47
MD5 0835a156f130254b49b7620de19cf4cf
BLAKE2b-256 2a0594f1ae7d11df9dbb36cbc3f798b5d9c4f426489f3b8cdb5b49d8df01a600

See more details on using hashes here.

File details

Details for the file libfelix-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: libfelix-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for libfelix-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d8f4dbe64e0753edcf8c3d9f8e491d12382b1e795b6a9fd64839a15bb16fcbb
MD5 ed6dc690010d0b119a42ebe414d2e375
BLAKE2b-256 e3887ef1caa2f1baab6c587fcc9b92a1333f4d11e57c8c78d96680ea8ed6f743

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page