Bookmarks
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
page 1 / 29
565 results tagged python  ✕   ✕
timo-reymann/python-script-background-music https://github.com/timo-reymann/python-script-background-music
Thu 11 Aug 2022 02:17:28 PM PDT archive.org

Play elevator music in the background while your script runs.

from script_background_music import play_music_in_background

play_music_in_background()
python module music funny
TheAlgorithms/Python https://github.com/TheAlgorithms/Python
Thu 11 Aug 2022 02:03:29 PM PDT archive.org

Many common and unusual algorithms, implemented in Python as learning exercises. If you want to get a sense of what, say, data structures or fuzzy logic would look like in Python, this is a good place to start.

python algorithms datastructures educational math logic algebra encryption compression
Conway's Game of Life in Python https://gitlab.com/-/snippets/2376113
Mon 01 Aug 2022 04:26:02 PM PDT archive.org

This is the Game of Life written in Python 3.10. It uses tkinter for the GUI; in fact I wrote it as an exercise in using tkinter as it's been a couple years since I last played with it.

Each cell of the game is a canvas rectangle. The id of each rectangle is stored in an matrix, shifted left by two. The bottom two bits of each shifted id are used to store the current state of the cell and the next state of the cell.

python gist cellularautomata life
citrusvanilla/tinyflux https://github.com/citrusvanilla/tinyflux
Thu 21 Jul 2022 12:58:54 PM PDT archive.org

TinyFlux is a time series version of TinyDB that is also written in Python and has no external dependencies. It's a great companion for small analytics workflows and apps, as well as at-home IOT data stores. Python datetime objects are first-class citizens and queries are optimized for time, above all else. Designed to be simple and fun to use by providing a simple and clean API that can be learned in 5 minutes. The current source code has 4,000 lines of code (with about 50% documentation) and 4,000 lines tests. TinyFlux is about 150kb, unzipped. TinyFlux needs neither an external server nor any dependencies.

python module database timeseries lightweight exocortex
It's Time to Say Goodbye to These Obsolete Python Libraries https://martinheinz.dev/blog/77
Wed 20 Jul 2022 06:11:18 PM PDT archive.org

With every Python release, there are new modules being added and new and better ways of doing things get introduced. We all get used to using the good old Python libraries and to certain way of doing things, but it's time upgrade and make use of the new and improved modules and their features.

  • os.path -> pathlib
  • os.urandom -> secrets
  • pytz -> zoneinfo
  • namedtuple -> dataclasses
  • Use logging.
  • Use f-strings.
  • tomli -> tomllib
  • distutils -> setuputils
article python modules versions archived
chip-red-pill/MicrocodeDecryptor https://github.com/chip-red-pill/MicrocodeDecryptor
Tue 19 Jul 2022 02:59:29 PM PDT archive.org

At the beginning of 2020, we discovered the Red Unlock technique that allows extracting Intel Atom Microcode. We were able to research the internal structure of the microcode and then x86 instruction implementation. Also, we recovered a format of microcode updates, algorithm and the encryption key used to protect the microcode.

This is the tools they used to take it apart.

python cli infosec intel microcode cryptography
nickbild/tflite_c64 https://github.com/nickbild/tflite_c64
Fri 08 Jul 2022 02:43:56 PM PDT archive.org

TensorFlow Lite for Microcontrollers is an open-source machine learning framework in which a TensorFlow model is built and trained on a host computer. That model is then reduced in size and computational complexity by an exporter that converts it to the TensorFlow Lite format. For the tiniest of compute platforms — microcontrollers — that model is then converted to a C array containing the model structure and any trained parameters, like weights and biases. On the microcontroller, an interpreter parses the C array to extract operations and data to run inferences against new input data.

Given that TF Lite for Microcontrollers runs on some heavily resource-constrained devices, I got to wondering whether or not I could run inferences against these models on a Commodore 64.

ai ml tensorflow microcontrollers c64 python basic sal
MycroftAI/mimic3 https://github.com/MycroftAI/mimic3
Fri 01 Jul 2022 08:01:31 PM PDT archive.org

A fast and local neural text to speech system developed by Mycroft for the Mark II. Multiple voice models, multiple languages.

Does not have to be used in the context of Mycroft. You can run Mimic on just about any Linux machine. If you can send text to a REST API rail somehow, you can use it.

python tts ai mycroft exocortex rest api
Florents-Tselai/WarcDB https://github.com/Florents-Tselai/WarcDB
Tue 21 Jun 2022 03:55:58 PM PDT archive.org

WarcDB is a an SQLite-based file format that makes web crawl data easier to share and query. It is based on the standardized Web ARChive format, used by web archivers.

python cli archive sqlite web
GitHub - jvadair/pyndb https://github.com/jvadair/pyndb
Mon 20 Jun 2022 01:55:14 PM PDT archive.org

pyndb, short for Python Node Database, is a package which makes it easy to save data to a file while also providing syntactic convenience. It utilizes a Node structure which allows for easily retrieving nested objects. All data is wrapped inside of a custom Node object, and stored to file as nested dictionaries. It provides additional capabilities such as autosave, saving a dictionary to file, creating a file if none exists, and more. The original program was developed with the sole purpose of saving dictionaries to files, and was not released to the public.

Basically, it's a way to treat internal hash tables like real databases, with automatic saving, automatic creation (if the file doesn't exist already), and so forth.

python database serialization storage hashtable
avinassh/py-caskdb https://github.com/avinassh/py-caskdb
Mon 20 Jun 2022 01:52:05 PM PDT archive.org

CaskDB is a disk-based, embedded, persistent, key-value store based on the Riak's bitcask paper, written in Python. It is more focused on the educational capabilities than using it in production. The file format is platform, machine, and programming language independent. Say, the database file created from Python on macOS should be compatible with Rust on Windows.

This project aims to help anyone, even a beginner in databases, build a persistent database in a few hours. There are no external dependencies; only the Python standard library is enough.

python module database educational
trehn/termdown https://github.com/trehn/termdown
Wed 15 Jun 2022 03:37:02 PM PDT archive.org

A countdown timer/stopwatch that runs in your terminal with nice, big ASCII numbers.

python cli timer tool
seanauff/metermon https://github.com/seanauff/metermon
Fri 10 Jun 2022 02:29:17 PM PDT archive.org

Metermon is a dockerized rtlamr wrapper that connects to an existing rtl_tcp instance and outputs formatted messages over MQTT for consumption by other software (e.g. telegraf for storage in influxdb and display in grafana, or import into Home Assistant).

The script can be run using docker (takes care of all dependencies) or standalone. It is designed to run on Raspberry Pi or similar.

By pulling apart this container it should be possible to figure out how to do this.

containers rtlsdr iot meters mqtt python
fpgmaas/simple-homepage https://github.com/fpgmaas/simple-homepage
Wed 01 Jun 2022 05:31:14 PM PDT archive.org

simple-homepage is a command line utility that helps you create a simple static homepage for your browser. The documentation can be found here.

cli python homepage generator lightweight
PyCon US 2022 Videos https://www.youtube.com/c/PyConUS/videos
Wed 25 May 2022 03:42:40 PM PDT archive.org

All the talks at PyCon 2022 on Youtube.

python conference videos archive presentations
pikasTech/pikascript https://github.com/pikasTech/pikascript
Tue 24 May 2022 04:21:23 PM PDT archive.org

PikaScript is an ultra-lightweight Python engine with zero dependencies and zero-configuration, that can run with 4KB of RAM and 32KB of flash (such as STM32G030C8 and STM32F103C8).

embedded python firmware lightweight
Footprint auto placement plugin for keyboard layout https://github.com/darakuneko/keyboard-layouter
Tue 17 May 2022 02:22:46 PM PDT archive.org

Keyboard Layouter is a plugin for KiCad(pcbnew). This plugin places switch footprints in the location specified by JSON of Keyboard Layout Editor.

I have confirmed that it works with pcbnew version (6.0.0) release build on Windows.

keyboards design circuits plugin python
StarlitGhost/pyhedrals https://github.com/StarlitGhost/pyhedrals
Sun 15 May 2022 05:32:02 PM PDT archive.org

A library for evaluating tabletop dice roll expressions. Supports rolling multiple dice (3d6), dice arithmetic (adding die rolls together), dice with arbitrary numbers of sides (5d13), keeping or dropping the highest or lowest rolls, exploding dice (roll a maximum value, roll and add an extra die), and more.

python module rpg dice expressions
Scapy https://scapy.net
Thu 12 May 2022 06:22:33 PM PDT archive.org

Scapy is a powerful interactive packet manipulation program. It is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more. It can easily handle most classical tasks like scanning, tracerouting, probing, unit tests, attacks or network discovery (it can replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, tshark, p0f, etc.). It also performs very well at a lot of other specific tasks that most other tools can’t handle, like sending invalid frames, injecting your own 802.11 frames, combining technics (VLAN hopping+ARP cache poisoning, VOIP decoding on WEP encrypted channel, …), etc.

Scapy runs natively on Linux, Windows, OSX and on most Unixes with libpcap (see scapy’s installation page). The same code base now runs natively on both Python 2 and Python 3.

python cli module hacking protocols packets generator decoder
xraymemory/haxon https://github.com/xraymemory/haxon
Sun 08 May 2022 07:25:41 PM PDT archive.org

Python 3 tooling to retrieve data from Axon Body Cams. This code should work for first and second generation non-online models.

python cli tool cameras extraction surveillance
page 1 / 29
4220 links, including 280 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn