# trulia
Python library for accessing Trulia’s REST API
## Installation
pip install trulia
## Usage
import trulia.stats import trulia.location
TRULIA_KEY = “RELACE_WITH_YOUR_API_KEY”
# Get all cities in California cities = trulia.location.LocationInfo(TRULIA_KEY).get_cities_in_state(“CA”)
# Get all counties in California counties = trulia.location.LocationInfo(TRULIA_KEY).get_counties_in_state(“CA”)
# Get all neighborhoods in Los Angeles neighborhoods = trulia.location.LocationInfo(TRULIA_KEY).get_neighborhoods_in_city(“Los Angeles”, “CA”)
# Get all states in the United States states = trulia.location.LocationInfo(TRULIA_KEY).get_states()
# Get all zip codes in California zip_codes = trulia.location.LocationInfo(TRULIA_KEY).get_zip_codes_in_state(“CA”)
# Get all traffic and listing stats for the city of Los Angeles in January 2014 city_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_city_stats(city=”Los Angeles”, state=”CA”, start_date=”2014-01-01”, end_date=”2014-01-31”)
# Get all traffic and listing stats for Santa Clara county in January 2014 county_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_county_stats(city=”Santa Clara”, state=”CA”, start_date=”2014-01-01”, end_date=”2014-01-31”)
# Get all traffic and listing stats for Venice, CA neighborhood in January 2014 neighborhood_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_neighborhood_stats(neighborhood_id=7183, start_date=”2014-01-01”, end_date=”2014-01-31”)
# Get all traffic and listing stats for California in January 2014 state_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_state_stats(state=”CA”, start_date=”2014-01-01”, end_date=”2014-01-31”)
# Get all traffic and listing stats for the 90025 zip code in January 2014 zip_code_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_zip_code_stats(zip_code=”90025”, start_date=”2014-01-01”, end_date=”2014-01-31”)
## Documentation
Trulia’s API documentation can be found here: http://developer.trulia.com/docs
Release files for trulia 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 | |
|---|---|---|---|
| trulia-0.0.3.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trulia-0.0.3.macosx-10.9-intel.tar.gz | Details |
Total release size: 7.5 kB
Release files / trulia-0.0.3.tar.gz
| Download URL | trulia-0.0.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc1efe9b28d684f644014a9cc599aa26a726b9f25e817c96a2b181ed3742acb6
|
|
BLAKE2b-256 checksum How to use checksums |
4631360d923e65f58a3129261616d8030eb5aec184b5a7776db45d07cb616224
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / trulia-0.0.3.macosx-10.9-intel.tar.gz
| Download URL | trulia-0.0.3.macosx-10.9-intel.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
209c822fb9994673bc0fc7be29c67bc26d92013dade4ffdb690d5b67b41fa898
|
|
BLAKE2b-256 checksum How to use checksums |
7e9a9468b5e046556606ceab93e4e5a4109ca9971f4d9b91f86ff3cf16e8853b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |