semvec/pypi-packages huggingface dataset:
blockinfile 2.17.1
blockinfile is a tool for editing automatically a text block surrounded by marker lines
Requires Python: >=3.7

# blockinfile

`blockinfile` is a tool for editing automatically a text block surrounded by marker lines. It's an automated port of ansible's [blockinfile module](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/blockinfile_module.html).

Basically, it can overwrite a part of a file that's well delimited so it doesn't overwrite the whole file.

## Usage

```
blockinfile --path FILE_TO_PATCH --block CONTENT_TO_INSERT [--marker MARKER_TEMPLATE] [--marker-begin START_STRING] [--marker-end END_STRING] [MORE_OPTIONS]
```

Options are the same as in [Ansible documentation](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/blockinfile_module.html).

## Sample

#### If `myfile.conf` initially contains:

```
sample line
other line
```

#### Then running:

```
blockinfile --path myfile.conf --marker "# {mark} MY BLOCK" --block 'this line will be entered
this one too'
```

Then myfile.conf will be updated:

```
sample line
other line
# BEGIN MY BLOCK
this line will be entered
this one too
# END MY BLOCK
```

#### Then running:

```
blockinfile --path myfile.conf --marker "# {mark} MY BLOCK" --block 'updating the section'
```

Would produce:

```
sample line
other line
# BEGIN MY BLOCK
updating the section
# END MY BLOCK
```

## "Automated" port

This project includes the source of Ansible's `blockinfile` module, slightly modified so it can work without having to use or even install Ansible. The modifications have been automated so it should be possible to easily port newer Ansible versions.

See [`builder/build.sh`](builder/build.sh).

## Install

From [PyPI](https://pypi.org/project/blockinfile/):

`pipx install blockinfile`

## License

Since `blockinfile` is a port of (part of) Ansible's source, it's licensed under GPLv3+ just like Ansible.
TREE4 0.1.13
Standard and Non-Standard Tree Based Methods
Keywords: python, tree, CART

The library contains standard CART based methologies for growing trees, includind twoing, as well as non standard techniques two-stage techniques like fast and latent-budget tree. There is also cross validation methods for pruning the tree, and k-folds implementation. As well as a graphical interface to view the tree and information about the nodes, including visual pruning by viewing thhe decrease in deviance created by a split relative to other splits in the grown tree, and an output table containing useful information. For more information and examples please see: https://github.com/danielchfynn/TREE4
github-utils-api 0.69.0
Small library to cover non provided methods by pygithub
Requires Python: >=3.6

# GitHub Utils API

![Known Vulnerabilities](https://snyk.io/test/github/pablotoledo/GithubUtilsAPI/badge.svg) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI) 
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=pablotoledo_GithubUtilsAPI&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=pablotoledo_GithubUtilsAPI) 




## What is it?
This package is used to provide a **simple** python interface for interacting with GitHub.
It is based on the official public Rest API documentation and private methods discovered by the community.

This project is documented at [https://githubutilsapi.readthedocs.io/](https://githubutilsapi.readthedocs.io/)

## How to Install?

### From PyPI
```console
$ pip install github-utils-api
```

### From Source
- Git clone repository
- Use `pip install -r requirements.txt` to install the required packages
- or `pipenv install && pipenv install --dev`

## How to use?
Import this python package and code.
```python
from githubutilsapi import GithubUtilsApi
```

## How to contribute?
First of all, I am happy for any PR requests.
Let's fork and provide your changes :)
1. Fork this project
2. Install required software Python3
3. Make your changes
4. Remember to generate documented methods
5. Test your changes and create the pull request

## License
This project is licensed under the terms of the MIT license.

For a copy, see [https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT).
anc-maper 0.0.1
Know the old names of prefectures
Requires Python: >=3.12

# anc-maper
This package outputs a map of Japan with the old names of the prefectures and the prefectures painted on it when you enter the names of the prefectures in kanji characters.


# how to run anc-maper
$ anc-maper

Enter the name of the prefecture in kanji for "Please enter the name of the prefecture:".

ex)Please enter the name of the prefecture:東京都
acuiferoec 0.1.0
Calcula el volumen de agua almacenada en un sistema de acuíferos.
Requires Python: >=3.6

# AcuiferoEC

Este paquete calcula el volumen de agua almacenada en un sistema de acuÃ­feros dado por una matriz 3Ã—3 que representa las longitudes, anchos y profundidades en diferentes puntos del acuÃ­fero.
SinhalaTools 0.0.7
Sinhala Tools for converting Sinhala text to Roman and vice versa.
Requires Python: >=3.6

# Sinhala Tools

A Python package to help with various Sinhala language processing tasks.

## Features

- Convert Sinhala text to Roman characters (Singlish) and vice versa.

- Translate text and files between Sinhala and other languages using Google Translate.

- Use Google Input Tools to convert text to Sinhala.

- Find possible Sinhala matches for Singlish input.

## Installation

Install the package via pip:

```bash
pip install SinhalaTools
```

# Usage

### Convert Sinhala to Roman

```python
from SinhalaTools import sinhala_to_roman

sinhala_text = "à·ƒà·’à¶‚à·„à¶½"
result = sinhala_to_roman(sinhala_text )
print(result)
```

### Convert Roman to Sinhala

```python
from SinhalaTools import roman_to_sinhala

roman_text = "siá¹ƒhala"
sinhala_text = roman_to_sinhala(roman_text)
print(sinhala_text)
```

### Convert Using Google Input Tools

```python
from SinhalaTools import inputTools

text = "sinhala"
result = inputTools(text)
print(result)
```

### Finding Possible Matches

```python
from SinhalaTools import possible_matches

input_str = "sinhala"
matches = possible_matches(input_str)
print(matches)
```

### Translate a Text String

```python
from SinhalaTools import translate

text = "Hello, how are you?"
translated_text = translate(text, source_language='en', target_language='si')
print(translated_text)
```

### Translate a File

```python
from SinhalaTools import translate_file

file = "sample.txt"
translated_text = translate_file(file, source_language='en', target_language='si')
print(translated_text)
```

## Contact

For any inquiries or issues, please contact [tharindu.20@cse.mrt.ac.lk](tharindu.20@cse.mrt.ac.lk).