Skip to main content

UNKNOWN

Project description

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

Project details


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)

Uploaded Source

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

Hashes for item-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7b0cd0ffa59bcd150525203545670b9a67ac1b15d52cd194bbfa9dd10c1f3d7c
MD5 1add3b9752c4a0c81f8d74ea0136974b
BLAKE2b-256 0bfcb800f4aaf3d06b709750ec79922daac0f9294e4b83df8941df7dd7bf8383

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page