GithubHelp home page GithubHelp logo

api_consumption-adn-systems_programming's Introduction

Case Study

MetroTransit

Api Consumption module to tell you how long it is until the next bus on “BUS ROUTE” leaving from “BUS STOP NAME” going “DIRECTION” using the api defined at http://svc.metrotransit.org/ .

MetroTiming.py

This is a python class which get the exact url and format it in json format and store as object.

nextbus.py

This is a python script  which will call the class after accept arguments from user.

input of nextbus.py

input_route = 'METRO Blue Line' input_stop = 'Target Field Station Platform 1' input_direction = SOUTH

output of nextbus.py

5 Minutes

Systems Programming

getdiskusage.py a program which will take a mount point as an argument and return a list of all the files on the mountpoint and their disk usage in bytes in json format.

output of getdiskusage.py without argument

soumya@Ubuntu-18:~$ python3 test-disk.py

Sequence index out of range.
Oops!No argument||Please pass a directory name.
Local name referenced but not bound to a value.
Oops!Wrong path||Please enter a valid path.

output of getdiskusage.py with argument

soumya@Ubuntu-18:~$ python3 test-disk.py /tmp
{"files": [["/tmp/terraform-log393656872", 2075], ["/tmp/winstone637069100051927219.jar", 2146767], ["/tmp/terraform-log499818461", 1504823]]}

Author

  • Soumya Ranjan Rout - DevOps Engineer - Gitrepo

api_consumption-adn-systems_programming's People

Contributors

soumyarout80 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.