Skip to main content

item

https://travis-ci.org/lorien/item.png?branch=master https://coveralls.io/repos/lorien/item/badge.svg?branch=master https://pypip.in/download/item/badge.svg?period=month https://pypip.in/version/item/badge.svg https://landscape.io/github/lorien/item/master/landscape.png

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)

Source distribution for item 0.0.3
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page