semvec/pypi-packages huggingface dataset:
markdown-grid-tables 0.6.0
Python-Markdown extension to support grid tables.
Requires Python: >=3.7
Keywords: python-markdown, extension, plugin, markdown, mkdocs

# Markdown Grid Tables

[Python-Markdown](https://python-markdown.github.io/) [extension](https://python-markdown.github.io/extensions/api/) to support grid tables.

[Fork of Markdown-GridTables by Alexander Abbott](https://github.com/smartboyathome/Markdown-GridTables)
TSSort 0.0.3
A library and tool for implementing TSSort in Python, which allows for the sorting of a list using pairwise comparisons while accounting for noisy data.
Requires Python: >=3.7
Keywords: pairwise, sort, tssort

This repository contains an implementation of the TSSort algorithm proposed in "TSSort – Probabilistic Noise Resistant Sorting" (Hees et al., 2011).

# Expected Input
This module expects a text file with a list of sentences separated by newline and a text file of a list of pairwise comparisons in the form int,int and separated by newline. See the sample data files ```comparisons.txt``` and ```sentences.txt``` in the linked github for an example. The list of pairwise comparisons refers to the sentence index (starting at 0), wherein the first number is the easier sentence and the second number is the harder sentence.

To run the code:
```
python3 -m tssort comparisons.txt sentences.txt [-l or -n]
```
where the ```comparisons.txt``` file is your list of comparisons and the ```sentences.txt``` file is you list of sentences. Note, the ```comparisons.txt``` file must reference the index ordering of sentences in the ```sentences.txt``` file.

The ```-l``` argument will output the ranked list of the sentences, from easiest to hardest.

The ```-n``` argument outputs suggestions for the sentences that should be compared next to ensure the most efficient method of sorting the list.
pysource-codegen 0.7.1
generate random python code to test linter/formatter/and other tools
Requires Python: >=3.8

[![pypi version](https://img.shields.io/pypi/v/pysource-codegen.svg)](https://pypi.org/project/pysource-codegen/)
![Python Versions](https://img.shields.io/pypi/pyversions/pysource-codegen)
![PyPI - Downloads](https://img.shields.io/pypi/dw/pysource-codegen)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/15r10nk)](https://github.com/sponsors/15r10nk)

# Introduction


`pysource_codegen` is able to generate random python code which can be compiled.
The compiled code should not be executed.

This is still a very early version, but it does its job.
It is general useful to test tools like formatters, linters or anything which operates on python code.

## Install:
``` bash
pip install pysource-codegen
```

## Usage:

The tool can be used over the CLI:

``` bash
pysource-codegen --seed 42
```

or as a library:

``` python
from pysource_codegen import generate

seed = 42
print(generate(seed))
```

You might find [pysource-minimize](https://github.com/15r10nk/pysource-minimize) also useful
to reduce the generated code which triggers your bug down to a minimal code snipped,
which can be used to fix the issue.

``` python
from pysource_codegen import generate
from pysource_minimize import minimize


def contains_bug(code):
    """
    returns True if the code triggers a bug and False otherwise
    """
    try:
        test_something_with(code)  # might throw

        if "bug" in code:  # maybe other checks
            return True
    except:
        return True
    return False


def find_issue():
    for seed in range(0, 10000):
        code = generate(seed)

        if contains_bug(code):
            new_code = minimize(code, contains_bug)

            print("the following code triggers a bug")
            print(new_code)

            return


find_issue()
```


## Bugs found in other projects:

### black

* https://github.com/psf/black/issues/3676
* https://github.com/psf/black/issues/3678
* https://github.com/psf/black/issues/3677

### cpython

#### 3.12
* https://github.com/python/cpython/issues/109219
* https://github.com/python/cpython/issues/109823
* https://github.com/python/cpython/issues/109719
* https://github.com/python/cpython/issues/109627
* https://github.com/python/cpython/issues/109219
* https://github.com/python/cpython/issues/109118
* https://github.com/python/cpython/issues/109114
* https://github.com/python/cpython/issues/109889

#### 3.13
* https://github.com/python/cpython/issues/120367
* https://github.com/python/cpython/issues/120225
* https://github.com/python/cpython/issues/124746
* https://github.com/python/cpython/issues/124871

## Todo:

* [ ] refactor the existing code
  * add better context information to `probability()`
  * remove `fix()` function and move code into `probability()`
* [ ] use probabilities for the ast-nodes from existing python code (use markov chains)
* [x] support older python versions
* [ ] allow to customize the probabilities to generate code to test specific language features
* [ ] [hypothesis](https://hypothesis.readthedocs.io/en/latest/) support
hack4u-tools 0.5.0
Una biblioteca para consultar cursos de hack4u.

# Hack4U Academy Courses Library

Una biblioteca Python para consultar cursos de la academia Hack4U.

## Cursos disponibles:

- Introducción a Linux [15 horas]  
- Personalización de Linux [3 horas]  
- Introducción al Hacking [53 horas]  

## Instalación

Instala el paquete usando `pip3`:

```python3
pip3 install hack4u
```

## Uso básico

### Listar todos los cursos

```python
from hack4u import list_courses

for course in list_courses():
    print(course)
```

### Obtener un curso por nombre

```python
from hack4u import get_course_by_name

course = get_course_by_name("Introducción a Linux")
print(course)
```

### Calcular duración total de los cursos

```python3
from hack4u.utils import total_duration

print(f"Duracion total: {total_duration()} horas")
```

### Calcular duracion de un curso

```python
from hack4u import search_course_by_duration

course = search_course_by_duration("53")
print(course)
```
amdata 0.1.2
A simple and easy-to-use library to manage SQLite databases.
Requires Python: >=3.6

# AMdata

### A Simple Tool for SQLite Databases

This library was created by **Amjad** to simplify common database operations such as creating, inserting, and selecting data. It is designed to be intuitive and easy to use for all programmers.

**Note on Contributions:**
All changes and modifications to this library must be clearly documented in the source code files and a change log. The original creator, **Amjad**, and the tool's name, **AMdata**, must be explicitly and clearly mentioned in any derivative work.

---

## Installation

You can install the library easily using pip:
```bash
pip install amdata


Usage
1. Connecting to the database and creating a table

from amdata.db import DB

# Connect to a database file named 'my_app.db'
# If the file does not exist, it will be created automatically.
db = DB('my_app.db')

# Create a table named 'users' with two columns: 'username' and 'password'
db.create_table('users', username='TEXT', password='TEXT')

2. Inserting data

# Insert a new user record
db.insert('users', username='amjad', password='1234')

# Note: The check_duplicate method is integrated.
# This will prevent adding a duplicate username.

db.insert('users', username='amjad', password='5678')


3. Updating and Deleting data

# Update the password for user 'amjad'
db.update('users', "username = 'amjad'", password='5678')

# Delete a user record
db.delete('users', "username = 'amjad'")


4. Retrieving data


# Select all data from the 'users' table
all_users = db.select('users')
print(all_users)