https://github.com/adriangb/httparse
Python wrapper for Rust's httparse HTTP parser
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (2.6%) to scientific vocabulary
Repository
Python wrapper for Rust's httparse HTTP parser
Basic Info
- Host: GitHub
- Owner: adriangb
- License: mit
- Language: Rust
- Default Branch: main
- Size: 40 KB
Statistics
- Stars: 40
- Watchers: 4
- Forks: 2
- Open Issues: 2
- Releases: 0
Metadata Files
README.md
httparse
Python wrapper for Rust's httparse. See this project on GitHub.
Example
```python from httparse import RequestParser
parser = RequestParser()
buff = b"GET /index.html HTTP/1.1\r\nHost" parsed = parser.parse(buff) assert parsed is None
a partial request, so we try again once we have more data
buff = b"GET /index.html HTTP/1.1\r\nHost: example.domain\r\n\r\n" parsed = parser.parse(buff) assert parsed is not None assert parsed.method == "GET" assert parsed.path == "/index.html" assert parsed.version == 1 assert parsed.bodystartoffset == len(buff) headers = [(h.name.encode(), h.value) for h in parsed.headers] assert headers == [(b"Host", b"example.domain")] ```
Owner
- Name: Adrian Garcia Badaracco
- Login: adriangb
- Kind: user
- Location: Chicago, IL
- Repositories: 172
- Profile: https://github.com/adriangb
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: almost 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Adrian Garcia Badaracco | 1****b | 9 |
| Dmitry Dygalo | d****y@d****v | 5 |
| Florimond Manca | f****a@p****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 1
- Total pull requests: 4
- Average time to close issues: N/A
- Average time to close pull requests: about 6 hours
- Total issue authors: 1
- Total pull request authors: 3
- Average comments per issue: 1.0
- Average comments per pull request: 2.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- Stranger6667 (1)
Pull Request Authors
- Stranger6667 (2)
- dependabot[bot] (2)
- florimondmanca (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- autocfg 1.1.0
- bitflags 1.3.2
- cfg-if 1.0.0
- httparse 1.8.0
- indoc 1.0.4
- instant 0.1.12
- libc 0.2.108
- lock_api 0.4.5
- memoffset 0.6.5
- once_cell 1.8.0
- parking_lot 0.11.2
- parking_lot_core 0.8.5
- proc-macro2 1.0.32
- pyo3 0.17.2
- pyo3-build-config 0.17.2
- pyo3-ffi 0.17.2
- pyo3-macros 0.17.2
- pyo3-macros-backend 0.17.2
- quote 1.0.10
- redox_syscall 0.2.10
- scopeguard 1.1.0
- smallvec 1.7.0
- syn 1.0.81
- target-lexicon 0.12.4
- unicode-xid 0.2.2
- unindent 0.1.8
- winapi 0.3.9
- winapi-i686-pc-windows-gnu 0.4.0
- winapi-x86_64-pc-windows-gnu 0.4.0
- jupyter ==1.0.0
- matplotlib ==3.5.0
- maturin >=0.13.0<14 development
- pre-commit >=2.16.0 development
- pytest >=6.2.5 development
- actions-rs/toolchain v1 composite
- actions/checkout v3 composite
- actions/checkout v2 composite
- actions/download-artifact v2 composite
- actions/setup-python v4 composite
- actions/setup-python v2 composite
- actions/upload-artifact v2 composite
- addnab/docker-run-action v3 composite
- messense/maturin-action v1 composite
- uraimo/run-on-arch-action v2.0.5 composite
- uraimo/run-on-arch-action master composite
- typing-extensions >=3; python_version < '3.8'