item
Usage Example
from item import Item
from lxml.html import fromstring
class SomeStructure(Item):
id = IntegerField('//path/to/@id')
name = StringField('//path/to/name')
date = DateTimeField('//path/to/@datetime', '%Y-%m-%d %H:%M:%S')
structure = SomeStructure(fromstring(SOME_HTML))
print(structure.id)
print(structure.name)
print(structure.date)
Installation
pip install item
Metadata
Release files for item 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| item-0.0.3.tar.gz | 7.6 kB | Details |
Release files / item-0.0.3.tar.gz
| Download URL | item-0.0.3.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10068aa8d94a93ddda85ff074405aafa8b5d36fb8cd08c559a2e4f6cb598c489
|
|
BLAKE2b-256 checksum How to use checksums |
89a43f1f6c84d64f22b4841850355634196d3698dc845c61bcbfaf2dcd4b8690
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |