semvec/pypi-packages huggingface dataset:
parsel 1.11.0
Parsel is a library to extract data from HTML and XML using XPath and CSS selectors
Requires Python: >=3.10
Keywords: parsel

======
Parsel
======

.. image:: https://github.com/scrapy/parsel/actions/workflows/tests-ubuntu.yml/badge.svg
   :target: https://github.com/scrapy/parsel/actions/workflows/tests-ubuntu.yml
   :alt: Tests

.. image:: https://img.shields.io/pypi/pyversions/parsel.svg
   :target: https://github.com/scrapy/parsel/actions/workflows/tests.yml
   :alt: Supported Python versions

.. image:: https://img.shields.io/pypi/v/parsel.svg
   :target: https://pypi.python.org/pypi/parsel
   :alt: PyPI Version

.. image:: https://img.shields.io/codecov/c/github/scrapy/parsel/master.svg
   :target: https://codecov.io/github/scrapy/parsel?branch=master
   :alt: Coverage report


Parsel is a BSD-licensed Python_ library to extract data from HTML_, JSON_, and
XML_ documents.

It supports:

-   CSS_ and XPath_ expressions for HTML and XML documents

-   JMESPath_ expressions for JSON documents

-   `Regular expressions`_

Find the Parsel online documentation at https://parsel.readthedocs.org.

Example (`open online demo`_):

.. code-block:: pycon

    >>> from parsel import Selector
    >>> text = """
    ... <html>
    ...     <body>
    ...         <h1>Hello, Parsel!</h1>
    ...         <ul>
    ...             <li><a href="http://example.com">Link 1</a></li>
    ...             <li><a href="http://scrapy.org">Link 2</a></li>
    ...         </ul>
    ...         <script type="application/json">{"a": ["b", "c"]}</script>
    ...     </body>
    ... </html>"""
    >>> selector = Selector(text=text)
    >>> selector.css("h1::text").get()
    'Hello, Parsel!'
    >>> selector.xpath("//h1/text()").re(r"\w+")
    ['Hello', 'Parsel']
    >>> for li in selector.css("ul > li"):
    ...     print(li.xpath(".//@href").get())
    ...
    http://example.com
    http://scrapy.org
    >>> selector.css("script::text").jmespath("a").get()
    'b'
    >>> selector.css("script::text").jmespath("a").getall()
    ['b', 'c']

.. _CSS: https://en.wikipedia.org/wiki/Cascading_Style_Sheets
.. _HTML: https://en.wikipedia.org/wiki/HTML
.. _JMESPath: https://jmespath.org/
.. _JSON: https://en.wikipedia.org/wiki/JSON
.. _open online demo: https://colab.research.google.com/drive/149VFa6Px3wg7S3SEnUqk--TyBrKplxCN#forceEdit=true&sandboxMode=true
.. _Python: https://www.python.org/
.. _regular expressions: https://docs.python.org/library/re.html
.. _XML: https://en.wikipedia.org/wiki/XML
.. _XPath: https://en.wikipedia.org/wiki/XPath
pyolan 0.1.1
One Letter Aerobatic Notation Parser
Requires Python: >=3.13

# PyOlan

This WIP package contains a OLAN (One Letter Aerobatic Notation, https://openaero.net/) parser written in Python. The OLAN string is interpreted as a set of elements (loop, line, stallturn, spin etc). This is currently used by FCScore (https://www.flightcoach.org/fcscore/) to generate sequence definitions for automatic scoring.


Installation
```
    pip install pyolan
```

Install from source
```
    pip install -e .
```

Read the next figure from an olan string:
```
    from pyolan.figure_parser import OlanFig

    ostr = "/d'1 5% 2a,f (-3,6) 4h4^> p(2)...' dq"
    olan_array = ostr.split(" ")
    ofig, olan_array = OlanFig.take(olan_array)
```


parse an entire olan sequence, join the templates into one and plot:
```
    from flightdata import State
    from pyolan.parser import parse_olan

    olans: list[ParsedOlanFig] = parse_olan(
        "/d'1 5% 2a,f (-3,6) 4h4^> p(2)...' dq 4% 2b.''1.''+``` (-13,0) 3% ~2g~ (2,0) 3% iv```6s.....'' 22y````1.. (-3,0) 8% `24'zt`8''",
    )

    template = State.stack({fig.definition.info.short_name: fig.template for fig in olans}, "manoeuvre")

    template.plotlabels("manoeuvre").show()
```

TODO:
- Modify so it respects the correct olan figure directions (prefers turnarounds when there is ambiguity)
- Consider closer links with open-aero. Would it be better to read .seq files?
- Add K factor calculation
- Think about positioning the generated templates so they fit in the box better (probably better handled in the FlightAnalysis submodule).
-
create-goin 0.1.0
Python 项目初始化工具 - 快速创建项目骨架
Requires Python: >=3.8
Keywords: cli, project-template, scaffold, generator, python-project

# create-goin

<div align="center">

**🚀 Python 项目初始化工具 - 快速创建标准化的项目骨架**

[![Python Version](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

</div>

---

## ✨ 特性

- 🎯 **快速创建** - 一条命令快速搭建项目骨架
- 📦 **模板支持** - 支持从 Git 仓库克隆各类项目模板
- 🎨 **灵活配置** - YAML 配置文件管理模板，易于扩展
- 🤖 **智能替换** - 自动替换模板中的变量（项目名、作者等）
- 💬 **交互友好** - 支持交互式和非交互式两种模式
- 🔧 **开箱即用** - 创建后即可开始开发，无需额外配置

## 📦 安装

### 使用 pip 安装

```bash
pipx install create-goin
```

### 从源码安装

```bash
git clone XXXXX
cd create-goin
pip install -e .
```

## 🚀 快速开始

### 1. 交互式创建项目

```bash
create-goin
```

工具会引导你输入项目信息：
- 项目名称
- 项目描述
- 作者名称
- 选择模板类型

### 2. 直接指定项目名称

```bash
create-goin my-awesome-project
```


## 📚 命令行参数

```bash
Usage: create-goin [OPTIONS] [PROJECT_NAME]

Options:
  -t, --template TEXT          项目模板类型（可选值见 --list-templates）
  -o, --output-dir PATH        项目输出目录（默认为当前目录）
  -y, --non-interactive        非交互模式，使用默认值
  -l, --list-templates         列出所有可用的模板
  --version                    显示版本信息
  --help                       显示帮助信息
```

## 🎨 可用模板

查看所有可用模板：

```bash
create-goin --list-templates
```

### 内置模板

| 模板名称 | 描述 | 类型 |
|---------|------|------|
| `ml-model-service` | 机器学习模型服务项目模板 | Git 模板 |

## ⚙️ 配置模板

你可以通过修改 `templates_config.yaml` 来添加自定义模板：

```yaml
templates:
  # 你的自定义模板
  my-custom-template:
    name: my-custom-template
    display_name: 我的自定义模板
    description: 这是一个自定义项目模板
    type: git
    source: https://github.com/your-org/your-template.git
    branch: main  # 可选，默认为 main
    variables:
      - PROJECT_NAME
      - PROJECT_DESCRIPTION
      - AUTHOR_NAME

# 设置默认模板
default_template: my-custom-template

# Git 克隆配置
git_config:
  timeout: 60  # 克隆超时时间（秒）
  depth: 1     # 浅克隆深度（加快克隆速度）
```

### 模板变量

模板中可以使用以下变量，工具会自动替换：

- `PROJECT_NAME` - 项目名称
- `PROJECT_DESCRIPTION` - 项目描述
- `AUTHOR_NAME` - 作者名称

## 📖 使用示例

### 示例 1：创建 ML 模型服务项目

```bash
$ create-goin ml-service -t ml-model-service

🚀 欢迎使用 create-goin！

项目名称: ml-service
项目描述: 一个机器学习模型推理服务
作者名称: Your Name

✨ 确认创建项目？ [Y/n]: y

🔨 正在创建项目...
✅ 项目创建成功！

📝 下一步操作：
  1. 进入项目目录：cd ml-service
  2. 创建虚拟环境：python -m venv .venv
  3. 安装依赖：pip install -e ".[dev]"
  4. 开始开发！
```
flightdata 0.3.5
Python tools for handling flight data
Requires Python: >=3.12

## FlightData
This repo is contains a set of datastructures and tools for handling flight log data.

### Flight 
The Flight object represents the data logged by a flight controller. The class wraps a pandas dataframe which is indexed on a single time axis. Where data is logged at different rates for different sensors it is mapped to the closest time index. Attribute access provides individual columns or sets of columns in the groups defined in Fields. Item access subsets the data in the time axis. 

### Table
The Table is the base type for most of the datastructures. It allows attribute access to individual columns. Attribute access is also available to return basic entities subclassed from the base type in the pfc-geometry package. For example in the state object table.x provides the x position, table.pos provides a Point representing the xyz position. columns that are not represented by geometric base types are considered to be labels for the data.

### State
The State object is a table representing the position and orientation of the aircraft along with their derivatives, it can be constructed from a Flight or from scratch by extrapolating in lines or around arcs. Many tools are provided to manipulate the data. The position and attitude are in a reference frame (with Z up), the derivatives move with the aircraft in either the body, wind, stability or track (like the wind axis but with no wind) frame.  


Further documentation will be provided here: https://pfcdocumentation.readthedocs.io/pyflightcoach/flightdata.html


### Installation

```bash
    pip install flightdata
    # or to include ardupilot dataflash log parsing capability:
    pip install flightdata[dataflash]
```

### Setup from source

```bash
    pip install .
```
w3lib 2.4.0
Library of web-related functions
Requires Python: >=3.10

=====
w3lib
=====

.. image:: https://github.com/scrapy/w3lib/actions/workflows/tests-ubuntu.yml/badge.svg
   :target: https://github.com/scrapy/w3lib/actions/workflows/tests-ubuntu.yml

.. image:: https://img.shields.io/codecov/c/github/scrapy/w3lib/master.svg
   :target: http://codecov.io/github/scrapy/w3lib?branch=master
   :alt: Coverage report


Overview
========

This is a Python library of web-related functions, such as:

* remove comments, or tags from HTML snippets
* extract base url from HTML snippets
* translate entites on HTML strings
* convert raw HTTP headers to dicts and vice-versa
* construct HTTP auth header
* converting HTML pages to unicode
* sanitize urls (like browsers do)
* extract arguments from urls

Requirements
============

Python 3.10+

Install
=======

``pip install w3lib``

Documentation
=============

See http://w3lib.readthedocs.org/

License
=======

The w3lib library is licensed under the BSD license.