UNKNOWN
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
item-0.0.2.tar.gz
(7.0 kB
view details)
File details
Details for the file item-0.0.2.tar.gz
.
File metadata
- Download URL: item-0.0.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0cd0ffa59bcd150525203545670b9a67ac1b15d52cd194bbfa9dd10c1f3d7c |
|
MD5 | 1add3b9752c4a0c81f8d74ea0136974b |
|
BLAKE2b-256 | 0bfcb800f4aaf3d06b709750ec79922daac0f9294e4b83df8941df7dd7bf8383 |