semvec/pypi-packages huggingface dataset:
simple-shortcuts 0.1.0
A collection of handy python abstractions with simple and intuitive API's
Requires Python: >=3.9

# simple-shortcuts

Simple, intuitive abstractions for common Python tasks.

## Status

🚧 **Early Development** – APIs may change

## Contributing

Feedback and abstraction requests are welcome! Open an issue to suggest new shortcuts or improvements.

## License

[Apache 2.0](LICENSE)

## Installation

```bash
pip install simple-shortcuts
```

## Samples from the `date` module

```python
from shortcuts.date import time_in, time_ago, time_now, Config


# Get local time now
now = time_now()

# Get utc time now
utc = time_now(utc=True)

# Get timezone aware value
tz_aware = time_now(naive=False)

# Get time in x hours
future = time_in(hours=2)

# Combine intervals
future = time_in(seconds=5, minutes=3, hours=1)

# Get time in the past
past = time_ago(seconds=25, minutes=2, utc=True, naive=False)

# Globally override naive and utc defaults
Config.naive = False
Config.utc = True
```
mcp-psilo-mock 0.1.19
Mock MCP server tools for psilo model context protocol
Requires Python: >=3.7

# MCP for PSILO


There are 3 main folders:
- mcp_psilo_in_progress/
    - Code being developed (in progress)
        - `client_sse.py`, `client_stdio.py`, `server_sse.py` all work
        - `client_http.py`, `server_http.py` does not work
- mcp_psilo_mock/
    - This code is published in PyPI: https://pypi.org/project/mcp-psilo-mock/
        - `server_stdio.py` contains the key get_psilo_data function
        - `server_stdio2.py` contains is an extra stdio_server used to test connecting to multiple MCP servers with Claude desktop
- test_code/
    - `test_right_package.py` Contains scripts to run the servers and clients in the two above folders
        - `test_right_package.py` is used to determine where mcp_psilo_mock is coming from (from this repo or from the published package) [this was cerated to assist when deploying the package]
    - `test_run_sse_client.py` is not importing the sse_client package from mcp; an alternative must be found
    - `test_run_sse_server.py`, `test_run_stdio_client.py`, `test_run_stdio_server.py`, and `test_run_stdio_client.py` all work




-----------
Archived notes


server_stdio.py and client_stdio.py both work with standard input/output. However, the client runs the server as a subprocess. 


We need the server to run independently (and connect via something like http). server_http.py and client_http.py are attempts to have it work, but connection through http doesn't work with the current mcp library.

The issues with running http are found below:
1. FastMCP has no .app or .asgi_app() method
    * So you can’t do: uvicorn.run(mcp.app, ...)
    * This makes it incompatible with uvicorn in current form
2. FastMCP.run() only supports stdio, not network transport
3. fastapi_mcp not viable or missing
    * Either unavailable, misinstalled, or not meant for your current MCP version
4. HTTP-based tool exposure not built-in in your installed MCP version
    * You’d have to write a manual FastAPI wrapper (no real MCP involved)
ouroboros-arcpy 1.0.0b2
Wrapper class for pythonic use of arcpy Feature Classes
Requires Python: ==3.11.*

[![PyPI - Version](https://img.shields.io/pypi/v/ouroboros-arcpy)](https://pypi.org/project/ouroboros-arcpy/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/ouroboros-arcpy)](https://pypistats.org/packages/ouroboros-arcpy)
![PyPI - Format](https://img.shields.io/pypi/format/ouroboros-arcpy)
[![Read the Docs](https://img.shields.io/readthedocs/ouroboros-arcpy)](https://ouroboros-arcpy.readthedocs.io/)
[![GitHub Actions Workflow Status: Pylint](https://img.shields.io/github/actions/workflow/status/corbel-spatial/ouroboros/pylint.yml?label=pylint)](https://github.com/corbel-spatial/ouroboros/actions/workflows/pylint.yml)
[![arcpy 3.4](https://img.shields.io/badge/arcpy-3.4-blue?logo=arcgis&logoColor=fff)](https://pro.arcgis.com/en/pro-app/3.4/arcpy/get-started/what-is-arcpy-.htm)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ouroboros-arcpy)
[![License: MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://github.com/corbel-spatial/ouroboros?tab=MIT-1-ov-file)

# ouroboros

A module that provides a wrapper class to manipulate `arcpy` feature classes in a more pythonic way. Uses the `Sequence` abstract base class to give list-like behavior to feature class objects.

## Requirements

- ArcGIS Pro 3.4
- Windows 11
  
## Installation

- In the [Python Command Prompt](https://developers.arcgis.com/python/latest/guide/install-and-set-up/#installation-using-python-command-prompt):

```PowerShell
python -m pip install ouroboros-arcpy
```

## Basic Usage

```Python
import ouroboros as ob

fc = ob.FeatureClass(r"C:\Users\zoot\spam.gdb\eggs_polygons", in_memory=True)  # cache in memory for better performance

for row in fc:
    print(row)
```

## Examples

- See `notebooks/example.ipynb`, best used in ArcGIS Pro

## Links

- [Documentation on Read the Docs](https://ouroboros-arcpy.readthedocs.io/)
- [GitHub repository](https://github.com/corbel-spatial/ouroboros)
- [Package on PyPI](https://pypi.org/project/ouroboros-arcpy/)

## References

- [Abstract Base Classes](https://docs.python.org/3/library/collections.abc.html)
- [ArcPy](https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/what-is-arcpy-.htm)

## Installation Steps for Development
```
cmd /k "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\proenv.bat"
```
```
git clone https://github.com/corbel-spatial/ouroboros
```
```
cd ouroboros
```
```
conda env create -f environment.yml
```

```
proswap arcgispro-py3-ob
```

```
python -m pip install -r requirements.txt
```
inprompt 1.6.2
A tiny CLI that outputs files as Markdown-formatted code blocks.
Requires Python: >=3.9
Keywords: code, fence, formatting, markdown, prompt

# inprompt

A tiny CLI that outputs files as Markdown-formatted code blocks.
Handy for pasting source into prompts for large-language models.

## Usage

Pass files or glob patterns to `inprompt` and pipe the result to your clipboard:

```bash
inprompt pyproject.toml '**/*.py' | pbcopy
```

Need a different fence delimiter? Use `--fence` (or `-f`):

```bash
inprompt -f "~~~" script.py | pbcopy
```

**Note:** Always quote glob patterns such as `'**/*.py'` so the shell doesn't expand
them before `inprompt` sees them.

The `| pbcopy` (or equivalent) copies the formatted blocks directly to your clipboard:

- **macOS:** `pbcopy` is built-in.
- **Linux:** install `xclip` and define aliases for convenience:

  ```bash
  alias pbcopy='xclip -selection clipboard'
  alias pbpaste='xclip -selection clipboard -o'
  ```

Output format:

`````markdown
<filename>
````         ← configurable with --fence / -f
<file contents>
````
`````

## Installation

```bash
pip install inprompt
```

## License

[MIT License](LICENSE)