semvec/pypi-packages huggingface dataset:
mimedetector 0.2.1
A Python package for detecting MIME types of local files and URLs
Requires Python: >=3.7

# MIMEDetector

A Python package for detecting MIME types of local files and URLs. This package provides a simple and efficient way to determine the MIME type of both local files and remote URLs using various detection techniques.

## Features

- Detect MIME types of local files
- Detect MIME types of remote URLs
- Support for custom HTTP headers
- Simple and intuitive API
- Type hints for better development experience
- Python 3.7+ support

## Installation

You can install MIMEDetector using pip:

```bash
pip install mimedetector
```

## Quick Start

```python
from mimedetector import MIMEDetector

# Initialize the detector
detector = MIMEDetector()

# Check a local file
mime_type = detector.get_MIME("path/to/your/file.pdf")
print(f"Local file MIME type: {mime_type}")

# Check a remote URL
mime_type = detector.get_MIME("https://example.com/file.jpg")
print(f"Remote file MIME type: {mime_type}")

# Using custom headers for HTTP requests
headers = {
    "User-Agent": "Custom User Agent",
    "Accept": "*/*"
}
detector = MIMEDetector(headers=headers)
mime_type = detector.get_MIME("https://example.com/file.jpg")
```

## API Reference

### MIMEDetector

#### `__init__(headers: Optional[Dict[str, str]] = None)`

Initialize a new MIMEDetector instance.

- `headers`: Optional dictionary of HTTP headers to use for remote requests

#### `get_MIME(source_path: Union[str, pathlib.Path]) -> Optional[str]`

Get the MIME type of a file or URL.

- `source_path`: Path to local file or URL
- Returns: MIME type string or None if unable to determine

#### `check_file_location(path: Union[str, pathlib.Path]) -> str`

Determine if the given path is a local file or remote URL.

- `path`: Path to check
- Returns: 'local' for local files, 'remote' for URLs, None for invalid paths

## Contributing

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

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Author

- **woopygit** - [GitHub](https://github.com/woopygit)
- Email: woopygit@icloud.com

## Version History

- 0.2.1
  - Added support for custom HTTP headers
  - Improved error handling
  - Updated documentation

## Acknowledgments

- Thanks to all contributors who have helped shape this project
- Built with Python's excellent `mimetypes` and `requests` libraries
sphinx-wagtail-theme 6.5.0
Sphinx Wagtail theme
Requires Python: >=3.8

# [Sphinx Wagtail theme](https://sphinx-wagtail-theme.readthedocs.io/)

[![CI status](https://github.com/wagtail/sphinx_wagtail_theme/workflows/CI/badge.svg)](https://github.com/wagtail/sphinx_wagtail_theme/actions?query=workflow%3ACI) [![PyPI version](https://badge.fury.io/py/sphinx-wagtail-theme.svg)](https://badge.fury.io/py/sphinx-wagtail-theme) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Sphinx Wagtail theme contains all files required to build a Sphinx extension that provides the theme.

-   [MIT license](https://github.com/wagtail/sphinx_wagtail_theme/blob/main/LICENSE)
-   [Contributors](https://github.com/wagtail/sphinx_wagtail_theme/blob/main/CONTRIBUTORS.md)
-   [Repository](https://github.com/wagtail/sphinx_wagtail_theme)
-   [Documentation](https://sphinx-wagtail-theme.readthedocs.io/en/latest/)
-   [Security](https://github.com/wagtail/sphinx_wagtail_theme/blob/main/SECURITY.md)
-   [Changelog](https://github.com/wagtail/sphinx_wagtail_theme/blob/main/CHANGELOG.md)
-   Supports Python >= 3.8

## Installation

```sh
pip install sphinx-wagtail-theme
```

## Usage

Select the "Sphinx Wagtail theme" in the `conf.py` file of a Sphinx

```python
# include the theme in the list of extensions to be loaded
extensions = ['sphinx_wagtail_theme', …]

# select the theme
html_theme = 'sphinx_wagtail_theme'
```

-   See the documentation for more usage instructions

## Development

### Getting started

-   [Instructions for Mac, Linux, and Windows](docs/development.rst)

### Release process

This section is for maintainer reference.

1. Check all relevant changes since the last release are documented in `CHANGELOG.md`
2. Check if there are any new contributors and add them to `CONTRIBUTORS.md`
3. Update the version number in `setup.cfg`. The version number should follow [Semantic Versioning](https://semver.org/).
4. Commit and push the changes
5. Create and push a new tag with the version number, prefixed with `v`. For example, `v1.2.3`
6. In the GitHub repository, create a new release against the tag you just pushed.
7. Once the release is created, the CI will automatically publish the new version to PyPI.

## Credits

[Sphinx Wagtail theme](https://github.com/wagtail/sphinx_wagtail_theme) is based on [Sphinx Typo3 theme](https://github.com/TYPO3-Documentation/sphinx_typo3_theme) which is based on [t3SphinxThemeRtd](https://github.com/typo3-documentation/t3SphinxThemeRtd) which is based on the [Read the Docs Sphinx theme](https://github.com/readthedocs/sphinx_rtd_theme).
perchance-dsl 0.1.1
A DSL for replacing if-else statements with a more readable syntax
Requires Python: >=3.6

# perchance-dsl

Ever read Python if-elif-else blocks and thought, hmm too simple? perchance-dsl is a Python-based domain-specific language (DSL) that provides a more readable syntax for conditional statements, replacing traditional `if-elif-else` blocks.

## Features
- Replace `if` statements with `perchance`
- Replace `elif` statements with `or perchance`
- Replace `else` statements with `certainly`
- Execute `.pyp` scripts directly using the `perchance` command

## Installation

Install Perchance DSL via pip:

```bash
pip install perchance-dsl
```

## Usage

### **Writing a `.pyp` Script**
Create a file, e.g., `example.pyp`, and write:

```python
x = 5

perchance x > 0:
    print("x is positive")
or perchance x == 0:
    print("x is zero")
certainly:
    print("x is negative")
```

### **Running a `.pyp` Script**
Run the script using:

```bash
perchance example.pyp
```

## Contributing
Feel free to open issues or contribute via pull requests on [GitHub](https://github.com/ehrev/perchance-dsl).

## License
This project is licensed under the MIT License.
fetquest 0.0.7
Package to help on Stock Market Visualization and Data

# fetquest
 
FETQUEST library is based on yfinance lib, Package to help on Stock Market Visualization and Data Handaling.

To find out the period return i.e for 1 year or 1 month use the below function. for Indian stock market use "{ScripName}.NS"
```
To Get Chart on the data use. {chart="yes"}

from fetquest import tickerReturn
scrips,returns = tickerReturn("SBIN.NS HDFCBANK.NS",period="3mo",chart="yes")


from fetquest import tickerReturn
scrips,returns = tickerReturn("SBIN.NS HDFCBANK.NS",period="3mo")
```
Periods accepted are '1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', 'ytd', 'max'

By using space as delimiter Scrips can be added.

This will return the Scrips provided in list -{scrips} and percentage return in {retruns} variables.

New Functions will be added as developed.
steam-pysigma 2025.2.0
This is python wrapper of STEAM SIGMA code
Requires Python: >=3.11.8
Keywords: SIGMA, CERN, STEAM

# STEAM PySIGMA

PySIGMA is a python wrapper of STEAM-SIGMA written in Java.  
This is repository for the source code for STEAM PySIGMA.  
(Copyright Â© 2023, CERN, Switzerland. All rights reserved.)

## Released version:
pip install steam-pysigma

# Links
STEAM website: https://espace.cern.ch/steam/

PySIGMA documentation: https://steam-pysigma.docs.cern.ch

PySIGMA coverage: https://steam-pysigma.docs.cern.ch/htmlcov/

# Contact
steam-team@cern.ch

# License
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.