semvec/pypi-packages huggingface dataset:
geojson-composer 0.1.5
A CLI tool to render GeoJSON data using Jinja2 templates.
License: MIT
Requires Python: >=3.7

##########################
GeoJSON Composer
##########################

*********
Overview
*********

This project is a `GeoJSON <https://en.wikipedia.org/wiki/GeoJSON>`_ template renderer that processes GeoJSON files and applies `Jinja2 <https://github.com/pallets/jinja>`_ templates to generate customized output. It supports:

* Processing single or multiple GeoJSON files

* Grouping features dynamically

* Custom Jinja2 filters for feature property updates

* Command-line interface (CLI) support

Installation
************

Prerequisites
=============

1. Python 3.x

2. pip package manager

Install Dependencies
====================

To install production dependencies::

 make install

To install development dependencies (for testing and linting)::

 make install-dev

Usage
*********

Running the Script::

 python main.py <input_path> <template_path> --output <output_file>

Arguments:

*input_path*: Path to a GeoJSON file or a directory containing multiple GeoJSON files:

*template_path*: Path to the Jinja2 template file.

*--output <output_file>* (optional): Path to save the rendered output. If omitted, output is printed to stdout.

Example Command:::

 python main.py geojson_data/ templates/output.jinja --output result.geojson

Filters
***********

*dict_update*: Updates a dictionary with new key-value pairs, returns the updated dictionary.

*dict_update_if*: Updates a dictionary with new key-value pairs if a condition (specified key contains the value) is met, returns the updated dictionary.

*compile_description*: Compiles a description string wrapping Name property into a URL property and also adding Img tags for Images property.

Development
***********

Running Tests::

 make test

Running Tests with Coverage::

 make test-coverage

Linting Code::

 make lint

License
*******

This project is licensed under the MIT License. Contact the author https://github.com/krvss for more information.
jspyr 0.1.0
JsPyr (pronounced Jasper) combines a Python and a JavaScript program into a single file.
License: MIT
Requires Python: >=3.9

# jspyr

JsPyr (pronounced Jasper) combines a Python and a JavaScript program into a single file.

## Installation

```bash
pip install jspyr
```

## Usage

```console
$ cat hello.py
print("Hello, World!")

$ cat hello.js
console.log("Hello, World!");

$ jspyr hello.py hello.js --out hello.jp
Created `hello.jp` from `hello.py` and `hello.js`!

$ python hello.jp
Hello, World!

$ node hello.jp
Hello, World!
```

## Local Development / Testing

- Create and activate a virtual environment
- Run `pip install -r requirements-dev.txt` to do an editable install
- Run `pytest` to run tests

## Type Checking

Run `mypy .`

## Create and upload a package to PyPI

Make sure to bump the version in `setup.cfg`.

Then run the following commands:

```bash
python -m build
```

Then upload it to PyPI using [twine](https://twine.readthedocs.io/en/latest/#installation):

```bash
twine upload dist/*
```