semvec/pypi-packages huggingface dataset:
torrch 0.0.6
This is the simplest module for quick work with files.
Requires Python: >=3.6
Keywords: files speedfiles

# Speed File Library #

## What is this? ##
The module allows you to work with files in just one line of code, without the need to manually open and close the file each time

## Quick Guide ##
The module is based on the following structure:

    
    f = open('data.txt')
    data = f.readlines()
    f.close()
    
Which Python provides by standard.


----------


### Using ###


Using the library is as simple and convenient as possible:

Let's import it first:
First, import everything from the library (use the `from `...` import *` construct).

Examples of all operations:

Writing the contents of an entire file to a variable using the `read()` function:

    temp = File(path='test.txt').read()


Writing the contents of an entire file to a variable line by line using the `readlines()` function:

    temp = File(path='test.txt').readlines()


Write only the first line from a file using the `readline()` function:

    temp = File(path='test.txt').readline()


Writing data from a variable to a file using write() (overwriting or creating a file):

    temp = "Test data"
    File(path='test.txt', data=temp).write()
    

Adding data from a variable to a file using write() (or creating a file):

    temp = "Test data"
    File(path='test.txt', data=temp).add()


----------


## Developer ##
My site:
zstarfile 0.3.0
tarfile extension with additional compression algorithms and PEP 706 by default
Requires Python: >=3.9

<!--
Copyright (C) 2024 Maxwell G <maxwell@gtmx.me>
SPDX-License-Identifier: MIT
-->

# zstarfile

[![builds.sr.ht status](https://builds.sr.ht/~gotmax23/zstarfile/commits/main.svg)](https://builds.sr.ht/~gotmax23/zstarfile/commits/main?)

[![copr build status][badge-copr]][link-copr] (gotmax23/zstarfile)

[![copr build status][badge-copr-dev]][link-copr-dev] (gotmax23/zstarfile-dev)

tarfile extension with additional compression algorithms and PEP 706 by default

## Links

- [zstarfile project hub](https://sr.ht/~gotmax23/zstarfile)
- [zstarfile git.sr.ht repo](https://git.sr.ht/~gotmax23/zstarfile)
- [zstarfile tracker](https://todo.sr.ht/~gotmax23/zstarfile)
- [zstarfile mailing list][archives] ([~gotmax/zstarfile@lists.sr.ht][mailto])

[archives]: https://lists.sr.ht/~gotmax23/zstarfile
[mailto]: mailto:~gotmax/zstarfile@lists.sr.ht

## Contributing

See [CONTRIBUTING.md](https://git.sr.ht/~gotmax23/zstarfile/tree/main/item/CONTRIBUTING.md).

## License

This repository is licensed under

    SPDX-License-Identifer: MIT

[badge-copr]: https://copr.fedorainfracloud.org/coprs/gotmax23/zstarfile/package/python-zstarfile/status_image/last_build.png
[link-copr]: https://copr.fedorainfracloud.org/coprs/gotmax23/zstarfile/
[badge-copr-dev]: https://copr.fedorainfracloud.org/coprs/gotmax23/zstarfile-dev/package/python-zstarfile/status_image/last_build.png
[link-copr-dev]: https://copr.fedorainfracloud.org/coprs/gotmax23/zstarfile-dev/
pygamenu 0.0.59
A neat little pygame wrapper
Requires Python: >=3.11.9

Maybe I'll add docs, Maybe I won't!


# How to use

1. Read through the code (Because I'm a random stranger on the internet)

2. Enter `pip install pygamenu`

3. Put `Import pymenu as pm` in your code

4. Code some stuff in a `.pym` file according to the docs (If those don't exist just look at the example really hard)

5. Create a view using this syntax`View = pm.initialize('path_from_working_dir/abcd.pym', size:Point)`

6. In your main loop add 
```python
for event in pg.event.get():

    View.passEvent(event, globals())
``` 

7. Read the docs for more info (Or do trial and error and try to figure out what my custom error messages mean)


Github:
https://github.com/Camleaf/Pymenu
Pypi:
https://pypi.org/project/pygamenu/
trapi-mcp 0.1.3
Add your description here
Requires Python: >=3.11

# TRAPI MCP

A FastMCP-based tool for writing prompts using Translator Reasoner API (TRAPI) queries. 
This package enables easy integration of biomedical knowledge graph queries into your 
LLM workflows.

## Installation

You can install the package from source:

```bash
pip install -e .
```

Or using uv (recommended):

```bash
uv install trapi-mcp
```

### Python API

```python
from trapi_mcp.tools import trapi, trapi_status, trapi_results

# Submit a TRAPI query
response = trapi(
    subject="MONDO:0005148",  # Alzheimer's disease
    object_="CHEBI:6801",     # Acetylcholine
    predicate="biolink:affects"
)

# Get the query ID
pk = response["pk"]

# Check status
status_response = trapi_status(pk)
print(f"Query status: {status_response.get('status')}")

# When status is "Done", get results
if status_response.get("status") == "Done":
    results = trapi_results(pk)
    # Process results
```

## Developer Guide

### Setup Development Environment

1. Clone the repository:

```bash
git clone https://github.com/your-username/trapi-mcp.git
cd trapi-mcp
```

2. Install development dependencies:

```bash
uv install
```

### Architecture

The package consists of several key components:

- `api_utilities.py`: Low-level functions for interacting with Translator API services - e.g., how to make API calls
- `tools.py`: High-level functions for building and executing TRAPI queries.  Currently, NameResolver, NodeNormalizer, 
and ARS query endpoints are all callable as MCP servers from this repository.
- `main.py`: FastMCP integration and CLI setup

## Integration with Goose (Example)

[Goose](https://github.com/GSK-AI/goose) is a framework for building LLM applications. 
Here's how to integrate TRAPI MCP with Goose:

#### install goose:
https://block.github.io/goose/docs/getting-started/installation/

#### Set an LLM Provider
https://block.github.io/goose/docs/getting-started/installation/#set-llm-provider

#### Add TRAPI MCP as an extenstion

https://block.github.io/goose/docs/getting-started/using-extensions#adding-extensions

- Under "Advanced Settings"
  - "Add custom extension"
  - Name the extension "TRAPI MCP"
  - For "Command", add "uvx trapi-mcp"
  - "Save Changes"
  - Turn "on" the extension for your session.
  - Ask questions of goose like:
  - ```text
    What is the relationship between Alzheimer's disease and acetylcholine?
    ```
  - ```text
    How many disesaes is ABCA1 related to?
    ```
  - ```text
    What treats diabetes mellitus?
    ```