semvec/pypi-packages huggingface dataset:
ttldictionary 0.1.0
Basic TTL system for Python dictionaries.
License: MIT
Requires Python: <4.0,>=3.10
Keywords: ttl

# TTL-Dictionary

A basic yet useful module made to streamline projects that need a basic TTL system that also is compatible with most serializers.

```python
ttl_dict = TTLDict()
ttl_dict.set('a', 1, ttl=5)  # Key 'a' will expire in 5 seconds
print(ttl_dict.get('a'))  # Output: 1
time.sleep(6)
print(ttl_dict.get('a'))  # Output: None (expired)

# Serialize to JSON
ttl_dict.set('b', 2, ttl=10)
json_data = json.dumps(ttl_dict)  # Output: {"b": 2}
```
django-client-ip 0.12
A Django middleware for retrieving client IP addresses and geolocation using ip-api.com
License: MIT

# django-client-ip

`django-client-ip` is a Django middleware that retrieves the client IP address and optionally fetches geolocation data using `ip-api.com`.

## Installation

1. Install the package using pip:
```bash
pip install django-client-ip
```

2. Add the middleware to your Django project in settings.py:
```python
MIDDLEWARE = [
    # Other middlewares
    'django_client_ip.GetClientIP',
]
```

## Usage
Once installed, every `request` object will have a `client_ip` attribute containing the IP address and geolocation data (if available).

## Author
[Hadi Cahyadi](mailto:cumulus13@gmail.com)

[![Buy Me a Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/cumulus13)

[![Donate via Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/cumulus13)
 [Support me on Patreon](https://www.patreon.com/cumulus13)
fw-gear-img-to-dicom 0.1.1
Encapsulates multiple two-dimensional image formats (e.g. png, jpg, gif, bmp) in a dicom archive.
License: MIT
Requires Python: <3.12,>=3.10
Keywords: Flywheel, Gears

# Image to DICOM

Encapsulates multiple two-dimensional image formats (e.g. png, jpg, gif, bmp)
in a dicom archive.

## Website

<https://gitlab.com/flywheel-io/scientific-solutions/gears/img-to-dicom>

## Installation

## Usage

The Image to DICOM gear is executed by ensuring the following required inputs and
configuration parameters are provided. Additional optional inputs are indicated below.

### Inputs

* *image*
  * **Type**: `image`
  * **Optional**: `false`
  * **Description**: Image to wrap in dicom format.
  * **Notes**: Input image file can be of type png or jpeg.

### Config

* *debug*
  * **Type**: `boolean`
  * **Optional**: `true`
  * **Default**: `false`
  * **Description**: Log debug messages.  Default level is `INFO`.

### Cite

**

*License:* MIT

## Contributing

For more information about how to get started contributing to that gear,
checkout [CONTRIBUTING.md](CONTRIBUTING.md).