semvec/pypi-packages huggingface dataset:
uniqdeque 0.1.0a0
A hybrid data structure combining a deque and a set (unique elements).
Requires Python: >=2

# uniqdeque

A hybrid data structure combining a [deque](https://en.wikipedia.org/wiki/Double-ended_queue) (double-ended queue) and a [set](https://en.wikipedia.org/wiki/Set_(abstract_data_type)) (unique elements).

## Features

- **Double-ended operations**:
  - `push_front(elem)`: Insert at front (if not a duplicate) in **O(1)** time.
  - `push_back(elem)`: Append at back (if not a duplicate) in **O(1)** time.
  - `pop_front()` / `pop_back()`: Remove from either end in **O(1)** time.
- **Uniqueness**: Automatically rejects duplicates on insertion.
- **Order-preserving**: Maintains insertion order.
- **Fast membership testing**: `elem in dq` checks in **O(1)** time.

## Use Cases

1. **LRU/LFU Caches**: Evict least-recently-used items while avoiding duplicates.
3. **Message Queues**: Deduplicate messages while supporting queue/dequeue at both ends.
4. **Sliding Window Analytics**: Track unique elements in a time window (e.g., "unique visitors in the last 5 minutes").

## Installation

```bash
pip install uniqdeque
```

## Usage Example

```python
from uniqdeque import uniqdeque

dq = uniqdeque([1, 2, 3])  # Initialize with elements
dq.push_front(0)            # -> [0, 1, 2, 3]
dq.push_back(3)             # No effect (duplicate)
dq.pop_back()               # Returns 3, dq -> [0, 1, 2]
```

## Performance

| Operation       | Time Complexity | Notes                       |
|-----------------|-----------------|-----------------------------|
| `push_*`        | O(1)            | Rejects duplicates in O(1). |
| `pop_*`         | O(1)            | Raises `KeyError` if empty. |
| `discard(elem)` | O(1)            | Safe removal if present.    |
| `len(dq)`       | O(1)            |                             |

## API Reference

### Core Methods

- **`push_front(elem: T) -> None`**
  Add to front if not a duplicate.
- **`push_back(elem: T) -> None`**
  Append to back if not a duplicate.
- **`pop_front() -> T`**
  Remove and return front element. Raises `KeyError` if empty.
- **`pop_back() -> T`**
  Remove and return back element. Raises `KeyError` if empty.

### Utilities

- **`discard(elem: T) -> None`**
  Remove element if present (no-op otherwise).
- **`clear() -> None`**
  Remove all elements.
- **`copy() -> uniqdeque[T]`**
  Return a shallow copy.

## Design Choices

- **Backed by**: An `OrderedDict` (for `O(1)` lookups and `O(1)` head/tail ops).
- **Alternatives**: Tree-based map (e.g., C++'s `std::map`) for ordered elements (`O(log n)` lookups).

## Contributing

Contributions are welcome! Please submit pull requests or open issues on GitHub.

## License

MIT
daflip 0.1.10
A modern Python CLI tool for converting data files between formats.
Requires Python: >=3.9

# daflip

[![PyPI version](https://badge.fury.io/py/daflip.svg)](https://badge.fury.io/py/daflip)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![Tests](https://github.com/vgreg/daflip/actions/workflows/test.yml/badge.svg)](https://github.com/vgreg/daflip/actions/workflows/test.yml)
[![Lint](https://github.com/vgreg/daflip/actions/workflows/lint.yml/badge.svg)](https://github.com/vgreg/daflip/actions/workflows/lint.yml)
[![Coverage](https://codecov.io/gh/vgreg/daflip/branch/main/graph/badge.svg)](https://codecov.io/gh/vgreg/daflip)

A modern Python CLI tool for converting data files between formats. Built with pyarrow and pandas.

## Features
- Supported input formats: CSV, TSV, PSV, fixed-width, Parquet, ORC, Feather, SAS, Stata, SPSS, Excel, HTML
- Supported output formats: CSV, Parquet, ORC, Feather, Excel, Stata
- Format inference from file extension (with override).
- Compression and row/sheet/table selection options.
- Solid foundation: Uses pandas and pyarrow to read and write data.

## Installation and usage

```sh
pip install daflip
daflip convert input.csv output.parquet
```

or

```sh
uvx daflip convert input.csv output.parquet
```

See `daflip --help` for all options.

## Development
- Dependencies managed with [uv](https://github.com/astral-sh/uv)
- Linting with [Ruff](https://github.com/astral-sh/ruff)
- Testing with [pytest](https://docs.pytest.org/)

## License
MIT
trimap-tools 1.0.5
Discovering TCR-Epitope-HLA interactions with Deep Learning
Requires Python: >=3.9


<p align="left">
  <img src="docs/source/_static/logo.png" alt="logo" width="280"/>
</p>


[![PyPI version](https://img.shields.io/pypi/v/trimap-tools)](https://pypi.org/project/trimap-tools/)
[![Downloads](https://static.pepy.tech/badge/trimap-tools)](https://pepy.tech/project/trimap-tools)
[![Docs](https://img.shields.io/badge/docs-latest-blue)](https://trimap-tools.readthedocs.io/)

# Discovering TCR-HLA-Epitope interactions with Deep Learning

<p align="center">
  <img src="docs/source/_static/diagram.png" alt="applications" width="1200"/>
</p>

**trimap-tools** is a package for analysis of peptide-HLA presentation and TCR specificity. It is designed to help researchers understand the interactions between T cell receptors (TCRs) and peptides presented by human leukocyte antigen (HLA) molecules, which play a crucial role in the immune response. 

## Installation
**trimap-tools** requires **Python 3.9** or later. It is available on PyPI and can be installed using pip:
```bash
pip install trimap-tools
```
or by cloning the repository and installing it manually:
```bash
pip install git+https://github.com/uhlerlab/trimap-tools.git@main
```

## Tutorials
For step-by-step guides on how to use **trimap-tools**, including training HLA/peptide encoders and predicting TCR specificity, please refer to the [Documentation](https://trimap-tools.readthedocs.io/) section.

## Key Features

- **Peptide representation learning with HLA context**  
  Learns latent embeddings of peptides while incorporating HLA background, enabling biologically informed modeling.

- **TCR specificity prediction using full receptor sequences**  
  Supports comprehensive modeling of TCR recognition by leveraging both α and β chain CDR regions.

- **Visualization of critical TCR residues**  
  Highlights key amino acid positions in TCRs that contribute to antigen recognition, aiding biological interpretation.

- **Discovery of disease-associated epitopes**  
  Identifies novel peptides potentially involved in disease by integrating small-scale disease-specific data with large-scale public datasets.

## Citation
If you use **trimap-tools** in your research, please cite the following paper:
tascal 0.2.0
A terminal-based calendar note-taking app.
Requires Python: >=3.6

# A Terminal Calendar Task App: TasCal

A lightweight terminal-based calendar app for writing and managing date-specific notes — powered by Python's `curses` module.

No mouse. No cloud. No distractions.

---

## Features

- Interactive calendar interface (arrow key navigation)
- Add multiple notes to any date
- Modify or delete individual notes
- Past dates are locked (read-only)
- Local-only data storage (`notes.json`)
- Runs in any Unix-like terminal (Linux, macOS, WSL, SSH, etc.)

---

## Why?

Most calendar and notes apps are over-engineered, visually bloated, and tethered to cloud ecosystems. This app is:

- Minimal
- Private
- Fast
- Ideal for developers, sysadmins, and minimalists

Use it in your terminal. On your laptop. On your server. On your Raspberry Pi.

---

## How It Works

- Notes are stored per date in `notes.json`
- You can add, modify, and delete individual notes
- Each date can contain **multiple notes**
- Terminal UI highlights today and the selected day

### Controls

| Key        | Action                          |
|------------|---------------------------------|
| Arrow keys | Navigate the calendar           |
| `a`        | Add a note to selected date     |
| `m`        | Modify a specific note          |
| `d`        | Delete a specific note          |
| `q`        | Quit the app                    |

---

## Installation

### 1. Pip

```bash
pip install tascal
```

### 2. (Optional) GitHub Repo 

```bash
git clone https://github.com/bearenbey/tascal.git
cd tascal/tascal
python3 cli.py

# or

git clone https://github.com/bearenbey/tascal.git
cd tascal
pip install .
```
---

## Data Format

All notes are saved in a local `notes.json` file in this format:

```json
{
  "2025-07-02": ["Doctor at 10am", "Lunch with Sam"],
  "2025-07-05": ["Send invoices"]
}
```

---

## License

This program is free software: you can redistribute it and/or modify  
it under the terms of the GNU General Public License as published by  
the Free Software Foundation, either version 3 of the License, or  
(at your option) any later version.

This program is distributed in the hope that it will be useful,  
but WITHOUT ANY WARRANTY; without even the implied warranty of  
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  
GNU General Public License for more details.

You should have received a copy of the GNU General Public License  
along with this program. If not, see <https://www.gnu.org/licenses/>.

© 2025 Eren Öğrül [termapp@pm.me](mailto:termapp@pm.me)
jbussdieker-service 0.5.1
A modern Python development toolkit.
Requires Python: >=3.9

# jbussdieker-service

A modern Python development toolkit plugin for managing systemd services. This plugin integrates with the jbussdieker CLI framework to provide easy systemd service installation and management capabilities.

## 🚀 Features

- **Systemd Service Installation**: Automatically creates and configures systemd service files
- **Service Management**: Provides commands to install and manage jbussdieker services
- **CLI Integration**: Seamlessly integrates with the jbussdieker CLI framework
- **Automatic Restart**: Configures automatic restart on failure with configurable intervals
- **Logging Integration**: Proper logging configuration with journald integration
- **User Management**: Configures proper user and group permissions

## 📦 Installation

```bash
pip install jbussdieker-service --upgrade
```

## 🔧 Prerequisites

- Python 3.9 or higher
- Linux system with systemd
- jbussdieker CLI framework installed
- Appropriate user permissions for systemd service management

## 🎯 Usage

### Install Systemd Service

Install the jbussdieker service as a systemd service:

```bash
jbussdieker service install
```

This command will:
- Create a systemd service file at `/etc/systemd/system/jbussdieker.service`
- Configure the service with proper restart policies
- Set up logging to journald
- Configure user and group permissions

### Start the Service

After installation, you can manage the service using standard systemd commands:

```bash
# Start the service
sudo systemctl start jbussdieker

# Enable the service to start on boot
sudo systemctl enable jbussdieker

# Check service status
sudo systemctl status jbussdieker

# View service logs
sudo journalctl -u jbussdieker -f
```

## 🔍 How It Works

1. **Service Installation**: Creates a systemd service file with proper configuration
2. **Service Configuration**: Sets up restart policies, logging, and user permissions
3. **Integration**: Integrates with the jbussdieker CLI framework for seamless operation
4. **Monitoring**: Provides continuous service operation with proper logging

## 🛠️ Development

This plugin is part of the jbussdieker ecosystem. It integrates seamlessly with the jbussdieker CLI framework.

### Project Structure

```
src/jbussdieker/service/
├── __init__.py
└── cli.py          # CLI interface and service management
```

### Service Configuration

The plugin creates a systemd service with the following configuration:

- **Type**: Simple service
- **Restart Policy**: Restart on failure with 5-second intervals
- **User**: jbussdieker
- **Group**: jbussdieker
- **Working Directory**: /tmp
- **Logging**: Integrated with systemd journal

## 📝 License

This project is licensed under **MIT**.

## 🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## 📚 Related

- [jbussdieker](https://pypi.org/project/jbussdieker/) - The main CLI framework
- [systemd](https://systemd.io/) - System and service manager