semvec/pypi-packages huggingface dataset:
DomiKnowS 0.546.dev0
A library provides integration between Domain Knowledge and Deep Learning.
License: MIT

The library allows to specify a problem domain with a conceptual [graph](https://github.com/HLR/DomiKnowS/blob/main/docs/developer/KNOWLEDGE.md#graph) including declarations of edges and nodes, as well as [logical constraints](https://github.com/HLR/DomiKnowS/blob/main/docs/developer/KNOWLEDGE.md#constraints) on the graph concepts and relations. [Neural network](https://github.com/HLR/DomiKnowS/blob/main/docs/developer/MODEL.md#model-declaration) outputs bounded to the graph edges and nodes. The logical constraints are converted to ILP and Gurobi Solver is used for inferring. This adds a relational overlay over elements in a network that relates physical concepts in applications. <br> <br> The example running in Google CoLab environment, presenting the usage of the library is [here](https://colab.research.google.com/drive/1FvdePHv3h3NDSTkBw1VKwAmaZFWuGgTi).
html-header-chunking 0.1.2
chunk html with relevant headers
License: MIT
Requires Python: >=3.8,<4.0
Keywords: xml,html

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Github Latest Pre-Release](https://img.shields.io/github/release/PresidioVantage/html-header-chunking?include_prereleases&label=pre-release&logo=github)](https://github.com/PresidioVantage/html-header-chunking/releases)
[![Github Latest Release](https://img.shields.io/github/release/PresidioVantage/html-header-chunking?logo=github)](https://github.com/PresidioVantage/html-header-chunking/releases)
[![Continuous Integration](https://github.com/PresidioVantage/html-header-chunking/actions/workflows/html_header_chunking_CI.yml/badge.svg)](https://github.com/PresidioVantage/html-header-chunking/actions)

# HTML Chunking with Headers


A lightweight (SAX) HTML parse "chunked" into sequence of contiguous text segments, each with all "relevant" headers.
Chunks are always delimited by relevant headers, but also by a (configurable) set of tags between-which to chunk.
This is a "tree-capitator," if you will. 🪓🌳🔗

The API entry-point is in `src/html_header_chunking/chunker`.
The logical algorithm and data-structures are in `src/html_header_chunking/handler`.

### Installation:
`pip install html-header-chunking`
### Example usage:
```python

from html_header_chunking.chunker import get_chunker

# default chunker is "lxml" for loose html
with get_chunker() as chunker:
    
    # example of favorable structure yielding high-quality chunks
    # prints chunk-events directly
    chunker.parse_events(
        ["https://plato.stanford.edu/entries/goedel/"],
        print)
    
    # example of moderate structure yielding medium-quality chunks
    # gets collection of chunks and loops through them
    q = chunker.parse_queue(
        ["https://en.wikipedia.org/wiki/Kurt_G%C3%B6del"])
    while q:
        print(q.popleft())
    
    # examples of challenging structure yielding poor-quality chunks
    l = [
        "https://www.gutenberg.org/cache/epub/56852/pg56852-images.html",
        "https://www.cnn.com/2023/09/25/opinions/opinion-vincent-doumeizel-seaweed-scn-climate-c2e-spc-intl"]
    for c in chunker.parse_chunk_sequence(l):
        print(c)

# example of mitigating/improving challenging structure by focusing only on html 'h4' and 'h5'
with get_chunker("lxml", ["h4", "h5"]):
    chunker.parse_events(
        ["https://www.gutenberg.org/cache/epub/56852/pg56852-images.html"],
        print)

# example of using selenium on a page which requires javascript to load contents
print("using default lxml produces very few chunks:")
with get_chunker():
    chunker.parse_events(
        ["https://www.youtube.com/watch?v=rfscVS0vtbw"],
        print)
print("using selenium produces many more chunks:")
with get_chunker("selenium"):
    chunker.parse_events(
        ["https://www.youtube.com/watch?v=rfscVS0vtbw"],
        print)
```
modulsurahdann 0.0.1
Negara Informasi Inform Negara
License: MIT
Keywords: surah,search


# Make sure you have upgraded version of pip
Windows
```
py -m pip install --upgrade pip
```

Linux/MAC OS
```
python3 -m pip install --upgrade pip
```

## Create a project with the following structure
```
packaging_tutorial/
â”œâ”€â”€ LICENSE
â”œâ”€â”€ pyproject.toml
â”œâ”€â”€ README.md
â”œâ”€â”€ setup.cfg
â”œâ”€â”€ src/
â”‚   â””â”€â”€ example_package/
â”‚       â”œâ”€â”€ __init__.py
â”‚       â””â”€â”€ example.py
â””â”€â”€ tests/
touch LICENSE
touch pyproject.toml
touch setup.cfg
mkdir src/mypackage
touch src/mypackage/__init__.py
touch src/mypackage/main.py
mkdir tests
```

## pyproject.toml 

This file tells tools like pip and build how to create your project

```
[build-system]
requires = [
    "setuptools>=68",
    "wheel"
]
build-backend = "setuptools.build_meta"
```
build-system.requires gives a list of packages that are needed to build your package. Listing something here will only make it available during the build, not after it is installed.

build-system.build-backend is the name of Python object that will be used to perform the build. If you were to use a different build system, such as flit or poetry, those would go here, and the configuration details would be completely different than the setuptools configuration described below.


# Setup.cfg setup
Using setup.cfg is a best practice, but you could have a dynamic setup file using setup.py

```
[metadata]
name = example-pkg-YOUR-USERNAME-HERE
version = 0.0.1
author = Example Author
author_email = author@example.com
description = A small example package
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/pypa/sampleproject
project_urls =
    Bug Tracker = https://github.com/pypa/sampleproject/issues
classifiers =
    Programming Language :: Python :: 3
    License :: OSI Approved :: MIT License
    Operating System :: OS Independent

[options]
package_dir =
    = src
packages = find:
python_requires = >=3.6

[options.packages.find]
where = src

```
# Running the build
### Make sure your build tool is up to date
Windows
```
py -m pip install --upgrade build
```
Linux/MAC OS
```
python3 -m pip install --upgrade build
```


### Create the build
```
py -m build
```













### References
https://packaging.python.org/tutorials/packaging-projects/