semvec/pypi-packages huggingface dataset:
pygments_ayed2 0.1.2
Pygments support for AyED2 Language
License: MIT
Requires Python: <4.0,>=3.8

# pygments_ayed2
Pygments Lexer for AyED2 language

After installing this package, pygments package will apply syntax highlighting to .ayed2 files

![](https://github.com/jmansilla/pygments_ayed2/blob/main/img/Example.png?raw=true)

# install

pip install pygments-ayed2
mkdocs-publish-control 0.1.2
MkDocs plugin to control page publishing based on metadata
License: MIT
Requires Python: <4.0,>=3.10
Keywords: mkdocs, plugin, publishing, metadata, control

# MkDocs Publish Control

[![PyPI version](https://img.shields.io/pypi/v/mkdocs-publish-control.svg)](https://pypi.org/project/mkdocs-publish-control/)
[![Test Coverage](https://img.shields.io/badge/coverage-94%25-brightgreen.svg)](https://github.com/gabrielbdornas/mkdocs-publish-control)
[![License](https://img.shields.io/github/license/gabrielbdornas/mkdocs-publish-control.svg)](https://github.com/gabrielbdornas/mkdocs-publish-control/blob/main/LICENSE)

A MkDocs plugin that allows you to control page visibility based on metadata. Perfect for managing draft content or private documentation within your MkDocs site.

## Features

- Control page visibility using simple metadata.
- Show/hide pages based on `hidden` metadata flag.
- Override visibility settings using environment variables.
- Works with both `mkdocs serve` and `mkdocs build`.
- Detailed logging for debugging.

## Installation

### Using Poetry

```bash
poetry add mkdocs-publish-control
```

### Using pip

```bash
pip install mkdocs-publish-control
```

## Usage

### Basic Configuration

Add the plugin to your `mkdocs.yml`:

```yaml
plugins:
  - publish-control:
      show_all: false  # default behavior
```

### Controlling Page Visibility

In your markdown files, add the `hidden` metadata at the top of the file:

```markdown
---
hidden: true
---

# Your page content
```

- If `hidden: true` is set, the page will be excluded from the build
- If `hidden: false` is set or the metadata is not present, the page will be included
- The default behavior is to show pages (hidden: false)

### Showing All Pages

You can override the visibility settings in two ways:

1. Using environment variable:
```bash
MKDOCS_SHOW_ALL=true mkdocs serve
```

2. Using configuration in `mkdocs.yml`:
```yaml
plugins:
  - publish-control:
      show_all: true
```

## Configuration Options

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `enabled` | boolean | `true` | Enable or disable the plugin |
| `show_all` | boolean | `false` | Show all pages regardless of their hidden status |

## Examples

### Basic Usage

1. Create a markdown file with hidden metadata:
```markdown
---
hidden: true
---

# Draft Content
This page will not appear in the build by default.
```

2. Run mkdocs:
```bash
mkdocs serve
```

The page will be excluded from the build.

### Showing All Pages

To temporarily show all pages (including hidden ones):

```bash
MKDOCS_SHOW_ALL=true mkdocs serve
```

Or configure it permanently in `mkdocs.yml`:
```yaml
plugins:
  - publish-control:
      show_all: true
```

## Logging

The plugin provides detailed logging about which pages are being excluded. To see the logs, run mkdocs with the `--verbose` flag:

```bash
mkdocs serve --verbose
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.
geosupport-suggest 0.1.0
Retrieve address suggestions from Geosupport
License: MIT
Requires Python: >=3.8
Keywords: NYC, geocoder, python-geosupport, geosupport, geosupport-suggest

# geosupport-suggest
Retrieve address suggestions from Geosupport using [python-geosupport](https://github.com/ishiland/python-geosupport) and a single input address.

[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/release/python-380/) [![Documentation Status](https://readthedocs.org/projects/geosupport-suggest/badge/?version=latest)](https://geosupport-suggest.readthedocs.io/en/latest/?badge=latest) [![PyPI version](https://img.shields.io/pypi/v/geosupport-suggest.svg)](https://pypi.python.org/pypi/geosupport-suggest/)

## Features

* Thread-safe memory caching for improved performance
* Parallel processing of address queries
* GeoJSON export of geocoding results 
* Address normalization with consistent formatting
* Borough code validation
* Rate limiting for API protection
* Context manager support
* Batch address processing

## Documentation

Full documentation is available at [geosupport-suggest.readthedocs.io](https://geosupport-suggest.readthedocs.io/).

## Install
```sh
$ pip install geosupport-suggest
```
or clone this repo, `cd` into it and
```sh
$ pip install .
```
## Quick Start

```python
from geosupport import Geosupport
from suggest import GeosupportSuggest

# create a Geosupport object
g = Geosupport()

# create a GeosupportSuggest object using Geosupport
s = GeosupportSuggest(g)

# Get suggestions
results = s.suggestions('100 Gold')

# Print formatted addresses
for result in results:
    print(s.format_address(result))
```

### Advanced Usage

Caching for improved performance:

```python
# Enable caching
s = GeosupportSuggest(g, use_cache=True)

# First call makes API request
results1 = s.suggestions('100 Gold St')

# Second call uses cache
results2 = s.suggestions('100 Gold St')  # Much faster
```

Convert results to GeoJSON:

```python
# Get address suggestions
results = s.suggestions('350 5th Ave')  # Empire State Building

# Convert to GeoJSON for mapping
geojson = s.to_geojson(results)
```

Process multiple addresses:

```python
addresses = [
    '100 Gold St',
    '350 5th Ave',
    {'address': '1 Police Plaza', 'borough_code': 1}  # With borough code
]

# Process all addresses (with parallel execution)
batch_results = s.suggestions_batch(addresses, parallel=True)
```

### Contribute
Issues and PRs welcome. See [Contributing](https://geosupport-suggest.readthedocs.io/en/latest/contributing.html) for details.

### License
MIT