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 - CodeForBaltimore/CitySync: Bringing together Baltimore non-profits with smart data.

BranchesTags
Open more actions menu

Latest commit

 

History

61 Commits
61 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
citysync
citysync
 
 
docs
docs
 
 
sonarqube
sonarqube
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Code for Baltimore

Documentation

Setup

To run this locally the following software is required:

  • Python (version minimum 3.6)
  • Flask
  • Flask-Marshmallow
  • Flask-SQLAlchemy
  • Docker (for optional container image usage)

Local Server

To run this application on your local machine you first need to install dependencies. From the project root, run the following command:

pip install -r requirements.txt

(note in some environments you may need to run pip3 instead of pip if you're running both Python 2.6 and 3.x.)

Once that completes you can run the application by running the following from the project root:

python manage.py

(note in some environments you may need to run python3 instead of python if you're running both Python 2.6 adn 3.x.)

Docker

Alternatively if you wish to run this in Docker instead of on your local you may do so using the included Dockerfile. To use the Docker simply run the following commands:

docker build -t citysync-dockerimg:latest .
docker run -d -p 5000:5000 citysync-dockerimg:latest

To stop the container run:

docker ps

Take note of the CONTAINER ID then run:

docker stop <container id>

You may then make changes to the code and re-run the initial build and run commands.

Using this product

Once setup and running (via Docker or locally) you can see the output by making queries to http://localhost:5000

Example: API request for general nonprofit data using curl.

curl -X GET http://localhost:5000/api/orgs/id/1

{ 
  "id": 1,
  "ein": 10591773,
  "name": "CONGREGATION YALKUT HA URIM INC",
  "ico": "% RABBI ISRAEL JAKOBOVITZ",
  "street": "6214 BENHURST RD",
  "raw_street": "",
  "city": "BALTIMORE",
  "state": "MD",
  "zipcode": "21209-3807",
  "latitude": 39.366293,
  "longitude": -76.690235,
  "geo_accuracy": 1.0,
  "group": 0,
  "subsection": 3,
  "affiliation": 3,
  "classification": 7000,
  "ruling": 200212,
  "deductability": 1,
  "foundation": 10,
  "activity": 0,
  "organization": 1,
  "status": 1,
  "tax_period": "",
  "asset_cd": 0,
  "income_cd": 0,
  "filing_req_cd": 6,
  "pf_filing_req_cd": 0,
  "acct_pd": 12,
  "asset_amt": 0,
  "income_amt": 0,
  "revenue_amt": 0,
  "ntee": "X30",
  "sort_name": "",
  "activity_full": ""
}

Example: API Request for Nonprofit organization address using curl.

curl -X GET http://localhost:5000/api/orgs/id/1/address

{
  "id": 1, 
  "ein": 10591773, 
  "name": "CONGREGATION YALKUT HA URIM INC", 
  "street": "6214 BENHURST RD", 
  "city": "BALTIMORE", 
  "state": "MD", 
  "zipcode": "21209-3807"
}

Example: API Request for Nonprofit geocoordinate location using curl.

curl -X GET http://localhost:5000/api/orgs/id/1/geocode

{
  "id": 1, 
  "ein": 10591773, 
  "name": "CONGREGATION YALKUT HA URIM INC", 
  "longitude": -76.690235, 
  "latitude": 39.366293, 
}

Testing

Sources and Links

About

Bringing together Baltimore non-profits with smart data.

Topics

civic-techcode-for-americacode-for-baltimorecommunity-outreachdata-miningpython

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

1 star

Watchers

4 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — 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.