Skip to main content

RETS Client Library in Pure Python

Project description

======
pyRETS
======

pyRETS is a Pure Python library for accessing RETS Servers to download
Real Estate Listings.

libRETS is a great library but takes to long to setup and manage when you run a
cluster of import workers and it has a tendancy to require newer versions of
packages than are available from RHEL6 without compiling the required packages
from source. And so pyRETS is born from pure python so we can `pip` and `puppet`
our rets library without fear of having to break packages on our servers.

This library is still under development.

Recusing Metadata Example:

pyrets = pyRETS('serverurl', 'username', 'password')
if (pyrets.Login()):
for resource in pyrets.GetMetadata().GetMetadataAsObject().Resource:
print "Found Resource:", resource.ResourceID

if "Class" in resource:
for a in resource.Class:
print "- Found Class:", a.ClassName
if "Field" in a:
for b in a.Field:
print " - Found Field:", b.SystemName

if "Object" in resource:
for c in resource.Object:
print " - Found Object:", c.ObjectType

if "LookupType" in resource:
for d in resource.LookupType:
print " - Found LookupType:", d.LookupName
if "Lookup" in d:
for e in d.Lookup:
print " - Found LookupValue:", e.ShortValue,
",", e.LongValue

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

pyRETS-0.1.0.tar.gz (1.4 kB view hashes)

Uploaded Source

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