semvec/pypi-packages huggingface dataset:
epcis-dummy-generator 0.0.2
A package for testing with EPCIS data.
Requires Python: >=3.8

# Important Notes

This project is still in development, and the idea is to make my job as a QA engineer automating tests related to EPCIS easier. I figured if I need this, someone else might need as well. This is my first Python package, any problems, doubts or suggestions, either comment on the [Github repository](https://github.com/Violeta-Carvalho/EPCIS-Dummy-Generator), or send me an [email](mailto:violetadecarvalho@gmail.com).

# Companies
EPCIS data related to companies.

## Generate Company Prefix

`generate_company_prefix(length: int)`

Randomly generates a company prefix (str) with a length that varies from 6 to 12, 7 is default.

# Items
EPCIS data related to items.

## Generate GTIN

`generate_gtin(company_prefix: str, company_prefix_length: int)`

Randomly generates a GTIN (str) with a length of 14. You must either inform `company_prefix` or `company_prefix_length`, if only `company_prefix_length` is informed, it generates a `company_prefix` with the `generate_company_prefix` function before generating the GTIN. Then, it generates the check digit.

## Get Company Prefix and GS1 ID from GTIN

`get_company_prefix_and_gs1_id_from_gtin(gtin: str, company_prefix_length: int)`

Reads the GTIN (str) and returns a dictionary with the following template:

```
{
    "gs1_id": <gs1_id>,
    "company_prefix": <company_prefix>
}
```

You must inform both `gtin` and `company_prefix_length`.

## Generate SGTIN

`generate_sgtin(serial: str, gtin=None, company_prefix=None, company_prefix_length=None)`

Generates an SGTIN based on serial informed and `gtin` and `company_prefix` informed. If no `gtin` is informed, it generates one with the `generate_gtin` function, using either the `company_prefix`. If only `company_prefix_length` is informed it generates `company_prefix` with the function `generate_company_prefix`.

# Locations
EPCIS data related to locations.

## Generate GLN

`generate_gln(company_prefix: str, company_prefix_length: int)`

Randomly generates a GLN (str) with a length of 13. You must either inform `company_prefix` or `company_prefix_length`, if only `company_prefix_length` is informed, it generates a `company_prefix` with the `generate_company_prefix` function before generating the GLN. Then, it generates the check digit.

## Generate SGLN

`generate_sgln(serial: str, gln=None, company_prefix=None, company_prefix_length=None)`

Generates an SGLN based on serial informed and `gln` and `company_prefix` informed. If no `gln` is informed, it generates one with the `generate_gln` function, using either the `company_prefix`. If only `company_prefix_length` is informed it generates `company_prefix` with the function `generate_company_prefix`.

# Utils
Functions unrelated to EPCIS, but which are used by EPCIS-related functions.

## Generate X Length Number

`generate_x_length_number(x: int)`

Generates a string made of X digits. Used to randomly generate Company Prefixes and GS1 IDs.

## Calculate Check Digit

`calculate_check_digit(base: str)`

Calculates check digit based on Modulo 10 rule, using the base, a string made entirely of digits.
power-comparison 1.0.8
Application to compare power plan prices.
Requires Python: >=3.9

<p align="center">
    <img alt="Shows the Power Comparison logo, a balance scale with two lightning bolts hovering above each side." src="https://raw.githubusercontent.com/hdert/Power-Comparison/main/src/power_comparison/img/power_compare.svg">
</p>
<p align="center">
    A modern Tkinter based app for comparing power plan prices!
</p>

<p align="center">
    <a href="https://pypi.org/project/power-comparison"><img src="https://img.shields.io/pypi/v/power-comparison.svg"></a>
    <a href="https://github.com/hdert/Power-Comparison/blob/main/LICENSE"><img src="https://img.shields.io/pypi/l/power-comparison.svg"></a>
</p>

# Table of Contents

-   [Getting Started](#getting-started)
    -   [Installation](#installation)
    -   [Usage](#usage)
-   [Contributing](#contributing)
    -   [Developing](#developing)
-   [License](#license)

# Getting Started

## Installation

Power Comparison is available as [`power-comparison`](https://pypi.org/project/power-comparison/) on PyPI:

```sh
# With pip
pip install power-comparison

# With pipx
pipx install power-comparison
```

## Usage

To run Power Comparison try:

```sh
power-comparison
```

# Contributing

Contributions are welcome and highly appreciated.

Contributions in the areas of power plan pricing data, and power retailer usage data downloaders would be extremely appreciated.

## Developing

Simply install [`hatch`](https://pypi.org/project/hatch) with:

```sh
pip install hatch
```

make your changes, and then try them out with:

```sh
hatch run power-comparison
```

# License

This repository is licensed under the [GPL-3.0 License](https://github.com/hdert/Power-Comparison/blob/main/LICENSE).
pycodes2json 1.1.0
A tool to convert Python files to a JSON file.
Requires Python: >=3.6


# py2json

`py2json` is a Python package that scans a directory and its subdirectories for `.py` files, excluding hidden directories (those starting with a `.`), and merges their contents into a single JSON file. It simplifies the process of aggregating Python code into a structured JSON format for further analysis or processing.

## Features

- Automatically scans a specified directory and its subdirectories for `.py` files, skipping hidden directories.
- Outputs the merged contents into a well-formatted JSON file.
- Handles exceptions for missing directories, permissions, and unexpected errors.

## Installation

Install the package using pip:

```bash
pip install py2json
```

## Usage

After installation, use the command-line interface (CLI) tool:

```bash
py2json <directory_path> <output_json_path>
```

### Parameters

- `<directory_path>`: Path to the directory containing `.py` files.
- `<output_json_path>`: Path to save the resulting JSON file.

### Example

Suppose you have a directory named `scripts` containing `.py` files and subdirectories. To merge them into a JSON file named `output.json`, run:

```bash
py2json scripts output.json
```

This will create a JSON file `output.json` with the contents of all `.py` files in the `scripts` directory and its subdirectories, excluding hidden directories.

## Exception Handling

The package gracefully handles the following errors:

- **FileNotFoundError**: If the specified directory does not exist.
- **PermissionError**: If the script lacks permissions to read files or write the output file.
- **Other Errors**: Any unexpected errors are logged for debugging.

## Contributing

Contributions are welcome! Feel free to submit issues or pull requests on the [GitHub repository](https://github.com/lechplace/py2json).

## License

This project is licensed under the MIT License. See the `LICENSE` file for details.