semvec/pypi-packages huggingface dataset:
tiddlywiki_parser 2.1.0
Library to extract tiddlers from a tiddlywiki file.
Requires Python: >=3.8

# tiddlywiki_parser
Parse the tiddler our of a tiddlywiki for backup, git management or anything
else. 

A simple tool to extract the tiddlers from a single file  
[Tiddlywiki](https://tiddlywiki.com/) (A personal, non-linear 
web notebook (aka a wiki in a file)).


## Warning 

This is barely more than a hobby project at this point.  I'm turning 
it into a package because I'd like to import it in another project, 
but if you're using a different version of `Tiddlywiki` 
or use it differently than me, I can't suggest, 
much less promise or guarantee that it will work.

If you have a case where it doesn't work, create an 
[Issue](https://github.com/nephlm/tiddlywiki_parser/issues),
and I'll take a look at it.



## Install

```
pip install tiddlywiki_parser 
```

## Usage

```
import tiddlywiki_parser.readers as readers
import tiddlywiki_parser.writiers as writers
from tiddlywiki_parser.tiddlywiki import TiddlyWiki

raw_content = readers.read('/path/to/tiddlywiki/file')
tiddlywiki = TiddlyWiki(raw_content)
writers.export('/path/to/destination/file.json, tiddlywiki.export_list(), save_json=True)
```

* `readers.read()` can also take a url.
* `TiddlyWiki.tiddlers` is a list of all the Tiddler objects.
* `TiddlyWiki.export_list()` is the same but converted to dicts.
* `TiddlyWiki.parse()` parses the file.  It is run automatically under normal circumstances.
* `TiddlyWiki.remake(delete_list=['title1', 'title2'])`
  * Builds a new tiddlywiki deleting the specified titles, and with any changes 
  made to tiddlers.   Titles cannot be changed.
* `Tiddler.dict()` returns the dict version of the Tiddler object.
* `writers.export()` will write the tiddlywiki either as individual files or a s a json file. 

## Limitations

tiddlywiki 5.2.0 changed how tiddlers are stored.  v1.x only deals with 
tiddlywiki files that are pre-5.2.0.  Hopefully v2.x can deal 
with pre- and post-5.2.0.  

tiddlywiki does allow storing tiddlers 
in both the old and new form in the same file, this library doesn't 
handle that case (or any sort of modifying pre 5.2.0 wikis). 

Only handles parsing single file tiddlywiki files. 

`remake` is highly experimental and doesn't deal with:

* adding a new tiddler
* renaming tiddlers
* pre-5.2.0 wikis
* probably a bunch of other cases. 

## Command Line 

There is a command line packaged with the package.  It will parse a tiddlywiki file and save the tiddlers either as individual files or as a single json file. 

```
usage: tiddlywiki_parser [-h] [--json] source output

positional arguments:
  source      The path to the html file
  output      The path to the output dir (or file).

options:
  -h, --help  show this help message and exit
  --json      Save as a json file instead of as individual tiddlers. output
              must be a dir.
```

`source` can be either a local file or an url.  
`output` is the where the data should be written.  It's either a directory for a writing individual files or a json file if `--json` is specified.

## Packaging

This should now be a proper package, and it uses uv for all the packaging stuff.
NeuronNet 0.1
Библиотека для коллективного обучения нейросетей



NeuronNet

Лёгкая библиотека для коллективного обучения нейросетей

Описание

NeuronNet — это простая и эффективная библиотека для коллективного обучения нейросетей. Она позволяет моделям обучаться не только независимо, но и обмениваться знаниями, что ускоряет обучение и повышает качество предсказаний. Это идеальный инструмент для тех, кто хочет исследовать и развивать новые методы обучения.

Возможности

Коллективное обучение: несколько моделей могут обмениваться знаниями, что ускоряет и улучшает процесс обучения.

Лёгкость в использовании: библиотека имеет минимальные зависимости и проста в интеграции.

Гибкость: поддерживает различные типы задач и легко адаптируется под нужды пользователя.


Установка

Для использования библиотеки в своём проекте:

pip install neuronnet  # Если библиотека будет доступна через PyPI

Или клонируйте репозиторий:

git clone https://github.com/UmarArab1/NeuronNet  
cd neuronnet

Пример использования

import numpy as np
from neuronnet import CollectiveLearningModel, collective_training

# Создание случайных данных для обучения
X = np.random.randn(100, 5)  # 100 примеров, 5 признаков
y = np.random.randn(100, 1)  # 100 целевых значений

# Создание моделей для коллективного обучения
models = [CollectiveLearningModel(5, 10, 1) for _ in range(3)]

# Обучение моделей
collective_training(models, X, y, epochs=1000, learning_rate=0.01)

# Проверка предсказаний
for i, model in enumerate(models):
    predictions, _ = model.forward(X[:10])
    print(f"Model {i+1} predictions:\n", predictions)

Лицензия

Проект распространяется под лицензией MIT с дополнительными ограничениями. Подробности см. в файле LICENSE.

Автор

Разработчик: Умар
Контакты: [umarfrost2011@gmail.com]
delcom904x 0.5.0
A python module to control Delcom USBLMP Products 904x multi-color, USB, visual signal indicators
Requires Python: >=3.9
Keywords: hidapi, usb-hid, iot-device

delcom904x
==========
delcom904x is a python class and command-line script to control the [Delcom Products 904x
series multi-color visual signal indicators](http://www.delcomproducts.com/products_USBLMP.asp).
These are USB HID devices that are easily controllable from most platforms.

It has been tested with the [904005-SB](http://www.delcomproducts.com/productdetails.asp?productnum=904005-SB)
but should work with any of the other models without any issues. The yellow in the green,
red and *yellow* indicators is wired the same as blue. There also doesn't appear to be a
method of detecting if the attached indicator supports blue or yellow, so blue and yellow
commands are synonyms.


Installation
------------

        $ pip install delcom904x
        $ control-delcom904x --green --red --flash --cycle


`control-delcom904x` usage
-----------------------------

        -h, --help        show this help message and exit
        --list            List all USB devices.
        --info            Returns info on the device.
        --red             Enable the red light.
        --green           Enable the green light.
        --blue            Enable the blue light.
        --yellow          Enable the yellow light (if equipped; synonym for blue).
        --flash           Turns on flashing.
        --cycle [100]     Turns on cycling.
        --intensity [80]  Sets brightness: 0-100.
        --buzzer          Buzzes three times.
        --reset           Resets the device.


Python Code Examples
-------------------


```python
import delcom904x

light = delcom904x.DelcomMultiColorIndicator()
light.set_color(delcom904x.red, flashing=True)
light.close()
```

```python
import delcom904x

with delcom904x.DelcomMultiColorIndicator() as light:
    light.info()
    color = delcom904x.green
    light.set_color(color, flashing=True)
    light.set_intensity(80, color)
```


udev Notes
----------

On Linux machines, the default udev rulesets may set the permissions on the device to only
be accessible to the root user. Add the following rule to `/etc/udev/rules.d/` and
re-plugin the indicator to allow all users to access the device (optionally, consider
changing `MODE="0666"` to `GROUP="dialout"` to allow only the dialout group access).

        SUBSYSTEMS=="usb", ATTRS{idVendor}=="0fc5", ATTRS{idProduct}=="b080", MODE="0666"
obutills 0.1.0
A collection of utility functions and tools for Python development
Requires Python: >=3.6
Keywords: utils, tools, system, config, logging, files

# obutills

A collection of utility functions and tools for Python development.

## Installation

```bash
pip install obutills
```

## Features

- **Safe System Commands**: Execute system commands safely with `safe_system`
- **File Utilities**: Safely manage files with utilities like `safe_mkdir`, `safe_remove`, etc.
- **Configuration Management**: Handle application configuration with `ConfigManager`
- **Logging Utilities**: Set up logging easily with `setup_logger`

## Usage Examples

### Safe System Commands

```python
from obutills import safe_system

# Execute a command and get the output
output = safe_system("echo Hello World")
print(output)  # Prints: Hello World

# With more options
output = safe_system("ls -la", cwd="/tmp", timeout=5)
```

### File Utilities

```python
from obutills import safe_mkdir, safe_remove, safe_read_json, safe_write_json

# Create directories safely
safe_mkdir("/path/to/directory")

# Write and read JSON
data = {"key": "value"}
safe_write_json("/path/to/file.json", data)
loaded_data = safe_read_json("/path/to/file.json")

# Use temporary files
from obutills import TempFileContext

with TempFileContext() as tmp:
    tmp_file = tmp.create_file(content="test data")
    # Use tmp_file...
# File is automatically deleted when context exits
```

### Configuration Management

```python
from obutills import ConfigManager, get_app_config_dir

# Get platform-specific config directory
config_dir = get_app_config_dir("myapp")

# Load configuration from file with environment variable overrides
config = ConfigManager("config.yaml", env_prefix="MYAPP_")

# Access configuration values
database_url = config.get("database.url", "default_url")
debug_mode = config.get("debug", False)

# Set and save configuration
config.set("logging.level", "DEBUG")
config.save()
```

### Logging Utilities

```python
from obutills import setup_logger, log_function_call

# Set up a logger with file and console output
logger = setup_logger(
    name="myapp",
    level="INFO",
    log_file="/path/to/app.log",
    json_format=False
)

# Use decorator to log function calls
@log_function_call()
def add(a, b):
    return a + b

result = add(1, 2)  # Logs function call and result
```

## License

MIT License