All Projects → summera → retscli

summera / retscli

Licence: MIT license
CLI for querying RETS servers and searching metadata.

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to retscli

pwb-for-heroku
A Rails website using the property-web-builder gem and ready to be deployed to heroku
Stars: ✭ 19 (-65.45%)
Mutual labels:  real-estate, mls
examples
SimplyRETS API for RETS, IDX, & RESO WebAPI data feeds - Examples
Stars: ✭ 18 (-67.27%)
Mutual labels:  real-estate, rets
openmls
Rust implementation of the Messaging Layer Security (MLS) protocol
Stars: ✭ 216 (+292.73%)
Mutual labels:  mls
Realate
real-estate data prediction engine
Stars: ✭ 23 (-58.18%)
Mutual labels:  real-estate
microrealestate
This is an Open Source Real estate management system which helps landlords to manage their rentals and properties
Stars: ✭ 137 (+149.09%)
Mutual labels:  real-estate
streamlit-geospatial
A multi-page streamlit app for geospatial
Stars: ✭ 310 (+463.64%)
Mutual labels:  real-estate
HRM
Easy & hassle free House Rent Management Web Application
Stars: ✭ 42 (-23.64%)
Mutual labels:  real-estate
OpenEstate-IO
Java libraries to read and write real estate data in common formats (e.g. OpenImmo, ImmoXML, Kyero, Trovit, IDX)
Stars: ✭ 37 (-32.73%)
Mutual labels:  real-estate
ResidenceCMS
Open Source Property Management System based on Symfony 6
Stars: ✭ 75 (+36.36%)
Mutual labels:  real-estate
property-seeker
Calculate the price range for property advertised on Domain and Real Estate.
Stars: ✭ 30 (-45.45%)
Mutual labels:  real-estate
real-estate-neighborhood-prediction
Code to repeat the experiments of "The economic value of neighborhoods: Predicting real estate prices from the urban environment"
Stars: ✭ 53 (-3.64%)
Mutual labels:  real-estate
flatcrawl-processors
A set of processors that will instantly inform users via a set of channels (ie. Telegram) of new flats that are found on different rental websites.
Stars: ✭ 11 (-80%)
Mutual labels:  real-estate
immo-feed
A extensible app for scraping property listings
Stars: ✭ 35 (-36.36%)
Mutual labels:  real-estate
rets
RETS Python 3 Client
Stars: ✭ 81 (+47.27%)
Mutual labels:  rets

retscli

Gem Version Build Status

CLI for querying RETS servers and searching metadata.

This gem is built on top of the rets gem, which handles the actual querying and parsing of the RETS server requests. Big thanks to the Estately team for their work!

retscli gif retscli png

Installation

$ gem install retscli

Features

  • Search metadata for keywords. Results are highlighted for readability.
  • Search resources. Results are displayed in a nicely formatted ascii table.
  • Open command results in your editor of choice.
  • Debug RETS requests and queries in debug mode.
  • Command results are paged using less by default.

Usage

CLI Commands

$ retscli help
Commands:
  retscli capabilities [LOGIN URL]  # Display capabilities for rets server
  retscli console [LOGIN URL]       # Start rets console
  retscli help [COMMAND]            # Describe available commands or one specific command
  retscli validate [LOGIN URL]      # Validate rets credentials

To see the available flags/options, run help on the command

$ retscli help console
Usage:
  retscli console [LOGIN URL]

Options:
  -u, [--username=USERNAME]        # Username
  -p, [--password=PASSWORD]        # Password
  -v, [--version=VERSION]          # Rets version
                                   # Default: RETS/1.7.2
  -a, [--agent=AGENT]              # User agent
  -t, [--ua-password=UA_PASSWORD]  # User agent password
  -d, [--debug], [--no-debug]      # Debug mode

Start rets console

Debug Mode

To view requests being made to the RETS server, enable debug mode with the -d flag. Once enabled, helpful info will be logged to $stdout. This is helpful to debug errors thrown by the RETS server and to adjust queries.

Rets Console Commands

After dropping into the RETS console, you get a bunch of useful commands for searching and exploring the RETS server

$ retscli console http://rets.server.com -u summera -p password

[email protected] > help
Commands:
  capabilities                       # Display capabilities for rets server
  classes [RESOURCE]                 # List available classes for resource
  help [COMMAND]                     # Describe available commands or one specific command
  login                              # Re-Login to RETS server. Use if session is no longer valid
  metadata                           # View metadata
  objects [RESOURCE]                 # List available objects for resource
  resources                          # List available resources
  search [RESOURCE] [CLASS] [QUERY]  # Search resources, e.g. properties, open houses, etc.
  search-metadata                    # Search metadata tables
  tables [RESOURCE] [CLASS]          # List available tables for class of resource
  timezone-offset                    # System timezone offset

Again, to see available flags/options, run help on the command. Many of the commands have an editor option if you feel the need to get down and dirty in your editor of choice.

[email protected] > help search-metadata
Usage:
  search-metadata

Options:
  -r, [--resources=one two three]  # Filter metadata by resources
  -c, [--classes=one two three]    # Filter metadata by classes
  -e, [--editor=EDITOR]            # Open search results in editor

Search metadata tables

Notes

  • When opening output in your editor, retscli will check the $EDITOR environment variable. If this is not set, it falls back to nano.
  • Much of the output is piped through less by default to allow for easy paging. If you'd like to change this, set your preferred pager in the $PAGER environment variable.
  • Retscli uses the ruby readline module for the rets console.
  • If any arguments and/or options have spaces in them, you will need to wrap them in quotes so that retscli does not split on the spaces.

Contributing

  1. Fork it ( https://github.com/summera/retscli/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Run the test suite (bundle exec rake)
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].