GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - osya/RateQueryAPI: Flask-based HTTP API for Telnet

BranchesTags
Open more actions menu

Latest commit

 

History

44 Commits
44 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
.vscode
.vscode
 
 
requirements
requirements
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.pylintrc
.pylintrc
 
 
.travis.yml
.travis.yml
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
Requirement.pptx
Requirement.pptx
 
 
requirements.txt
requirements.txt
 
 
telnet
telnet
 
 

Repository files navigation

Rate Query API

Introduction

Build Status Coverage Status

This app implements a Flask-based HTTP API for working with Telnet. Telnet commands hardcoded in the view methods (in the get_vendors_for_destination() and in the get_vendor_rate())

Used technologies:

  • Testing:
    • Python & Flask
    • Telnet were injected via Flask-Injector and mocked via pytest-mock
    • Flask-WebTest also used
  • Travis CI

Installation

First, set your app's secret key as an environment variable. For example, example add the following to .bashrc or .bash_profile.

    export RATE_QUERY_API_SECRET='something-really-secret'

In your production environment, make sure the RATE_QUERY_API_ENV environment variable is set to "prod".

Then run the following commands to bootstrap your environment.

    git clone http://[email protected]/scm/rqa/alpha
    cd alpha
    pip install -r requirements/dev.txt
    python manage.py server

Usage

You can execute the following curls and get result:

curl http://149.56.132.178:5000/api/v1/GetVendorsForDestination/US%20Virgin%20Islands%20Proper
curl http://149.56.132.178:5000/api/v1/GetVendorRate/US%20Virgin%20Islands%20Proper

Shell

To open the interactive shell, run python manage.py shell

By default, you will have access to app model.

Tests

To run all tests, run

    python manage.py test

About

Flask-based HTTP API for Telnet

Topics

dependency-injectionflask-scriptflask-sqlalchemyinjectorpostgresqlpsycopg2pytestpythonpython-decouplepython3sqlalchemytelnettravis-ciwebtest

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.