Giter VIP home page Giter VIP logo

fwd's Introduction

Post City Data to API

This script reads in a CSV file containing city data for Washington state, and posts the data to the Forward Networks API endpoint.

Requirements

To run this script, you will need the following packages:

  • pandas
  • requests

You can install these packages using pip:

pip install pandas requests

Usage

usage: post_locations.py [-h] --host HOST --network-id NETWORK_ID --username USERNAME --password PASSWORD

Command Line Arguments

The script accepts the following command line arguments:

  • --host: The Forward Networks API host (required)
  • --network-id: The Forward Networks network ID (required)
  • --username: The Forward Networks API username (required)
  • --password: The Forward Networks API password (required)

To specify command line arguments, use the following format:

python post_locations.py --host example.com --network-id 12345 --username myusername --password mypassword

Washington Cities CSV File

To use this script, you will also need the washington_cities.csv file, which contains city data for Washington state. This file is included in this repository.

To download the file, either clone this repository using Git, or download the file directly from the GitHub website.

To clone the repository using Git, run the following command in your terminal:

git clone https://github.com/fracticated/fwd.git

This will create a local copy of the repository on your computer, including the washington_cities.csv file.

Alternatively, you can download the file directly from the GitHub website by following these steps:

  1. Navigate to the repository on the GitHub website.
  2. Click on the washington_cities.csv file in the file list.
  3. Click the "Download" button to download the file.

Once you have downloaded the washington_cities.csv file, place it in the same directory as the post_locations.py script. Then, you can run the script using the instructions provided in the "Usage" section above.

License

This script is released under the MIT License. See the LICENSE file for details.

fwd's People

Contributors

captainpacket avatar

Watchers

 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.