semvec/pypi-packages huggingface dataset:
date-spacy 0.0.1
A spaCy extension for enhanced date and number entity recognition and extraction as structured data.

# Date spaCy

![date spacy logo](https://github.com/wjbmattingly/date-spacy/blob/main/images/date-spacy-logo.png?raw=true)

Date spaCy is a collection of custom spaCy pipeline component that enables you to easily identify date entities in a text and fetch the parsed date values using spaCy's token extensions. It uses RegEx to find dates and then uses the [dateparser](https://dateparser.readthedocs.io/en/latest/) library to convert those dates into structured datetime data. One current limitation is that if no year is given, it presumes it is the current year. The `dateparser` output is stored in a custom entity extension: `._.date`.

This lightweight approach can be added to an existing spaCy pipeline or to a blank model. If using in an existing spaCy pipeline, be sure to add it before the NER model.

## Installation

To install `date_spacy`, simply run:

```bash
pip install date-spacy
```

## Usage

### Adding the Component to your spaCy Pipeline

First, you'll need to import the `find_dates` component and add it to your spaCy pipeline:

```python
import spacy
from date_spacy import find_dates

# Load your desired spaCy model
nlp = spacy.blank('en')

# Add the component to the pipeline
nlp.add_pipe('find_dates')
```

### Processing Text with the Pipeline

After adding the component, you can process text as usual:

```python
doc = nlp("""The event is scheduled for 25th August 2023.
          We also have a meeting on 10 September and another one on the twelfth of October and a
          final one on January fourth.""")
```

### Accessing the Parsed Dates

You can iterate over the entities in the `doc` and access the special date extension:

```python
for ent in doc.ents:
    if ent.label_ == "DATE":
        print(f"Text: {ent.text} -> Parsed Date: {ent._.date}")
```

This will output:

```
Text: 25th August 2023 -> Parsed Date: 2023-08-25 00:00:00
Text: 10 September -> Parsed Date: 2023-09-10 00:00:00
Text: twelfth of October -> Parsed Date: 2023-10-12 00:00:00
Text: January fourth -> Parsed Date: 2023-01-04 00:00:00
```
valuelock 0.1.0
A Python package for locking based on values.

# valuelock

![PyPI](https://img.shields.io/pypi/v/valuelock)
![License](https://img.shields.io/pypi/l/valuelock)
![Python Versions](https://img.shields.io/pypi/pyversions/valuelock)

A Python package for locking based on values.

## Installation

You can install `valuelock` using `pip`:

```bash
pip install valuelock
```

## Usage

```python
from valuelock import get_lock

# Your code here
```

## Features

* Locking based on values.
* Thread-safe.

## Documentation

Detailed documentation can be found on the [GitHub repository](https://github.com/killbus/py-valuelock).
shed-pi 0.0.1
Shed Pi
Requires Python: >=3.8

# shed-pi

## Introduction

A package to run a Raspberry Pi in an outbuilding such as a garden shed, for the internet of sheds. 

Automated use cases:
- Weather station
- Garden lighting
- Security

## TODO:
1. Fix: Bug: The script startup gets an incorrect time (Hasn't yet got the internet time)
2. Instructions on pinout 

### Wish list:
- Poetry (Not started)
- ASGI backend server (Daphne)
- Native webcomponent FE with Bootstrap
- pip install raspberry pi
- modular components that are easy to install from a software and hardware perspective 
- Provide systemd script to 3rd parties 
- venv is crucial before installing any third party packages!
- Pre commit config with ci integration

## Installation

### Enable interfaces

For any temperature sensors the 1 wire interface is required

```shell
sudo raspi-config
```

1. Select the option: "Interface Options"

2. Select the Option I7: "1-Wire"

3. Agree to installing the 1-Wire script

4. Reboot
```shell
sudo reboot
```

Sanity check that the 1 Wire data is available: 

```shell
ls /sys/bus/w1/devices/
```

Check the value read, be sure to change "28-000003ebbf13" to the values listed above:
```shell
cat  /sys/bus/w1/devices/28-000003ebbf13/w1_slave
```

### Script auto start with systemd

Create a file in systemd 

```shell
nano /lib/systemd/system/shed-pi.service
````

With the contents 

```ini
[Unit]
Description=Shed-Pi
After=multi-user.target
StartLimitIntervalSec=0
 
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/shed-pi/temp_logger.py
StandardInput=tty-force
 
[Install]
WantedBy=multi-user.target
```

Enable the service, (CAVEAT: didn't work when manually starting, works on reboot) 
```shell
sudo systemctl daemon-reload
sudo systemctl enable shed-pi.service
sudo systemctl start shed-pi.service
sudo systemctl status shed-pi.service
```

Read the logs
```shell
tail -f /var/log/shed-pi.log
```