semvec/pypi-packages huggingface dataset:
chicago 0.4.1
Chicago meta information and other fun stuff
Keywords: chicago

python-chicago
==============

Information about Chicago and it's geographies. Inspired by
`python-us <https://github.com/unitedstates/python-us/tree/master/us>`__.

Because sometimes you just need to loop through a list of Chicago
neighborhoods.

Installation
------------

Install using pip:

::

    pip install chicago

Usage
-----

Iterate over community areas
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    >>> from chicago import COMMUNITY_AREAS
    >>> for ca in COMMUNITY_AREAS:
    ...     print(ca.name, ca.number)
    ...
    ('Rogers Park', '1')
    ('West Ridge', '2')
    ('Uptown', '3')
    ('Lincoln Square', '4')
    ('North Center', '5')
    ('Lake View', '6')
    ('Lincoln Park', '7')
    ('Near North Side', '8')
    ('Edison Park', '9')

Get a community area by number
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    >>> COMMUNITY_AREAS.get_by_number(22)
    CommunityArea(name='Logan Square', number='22')

Iterate over neighborhoods
~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    >>> from chicago import NEIGHBORHOODS
    >>> for n in NEIGHBORHOODS:
    ...     print(n)
    Albany Park
    Andersonville
    Archer Heights
    Armour Square
    Ashburn
    Auburn Gresham
    Austin
    Avalon Park
    Avondale
    Belmont Cragin

Iterate over census tracts
~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    >>> from chicago import TRACTS
    >>> for tract in TRACTS:
    ...     print(tract)
    17031010100
    17031010100
    17031010100
    17031010100
    17031010201

Get the census tract that contains a Chicago precinct
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    >>> from chicago import PRECINCTS
    >>> precinct = PRECINCTS[0]
    >>> from chicago import get_tract_from_precinct_id
    >>> tract = get_tract_from_precinct_id(precinct.full_name)
    >>> print(tract)

Get the census tract that contains a suburban Cook county precinct
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    >>> from chicago.cook_suburbs import COOK_SUBURBAN_PRECINCTS, get_suburban_cook_tract_from_precinct_number
    >>> precinct = COOK_SUBURBAN_PRECINCTS[0]
    >>> tract = get_suburban_cook_tract_from_precinct_number(precinct.objectid)
    >>> print(tract)
    17031804202

Data Sources
------------

Community Areas
~~~~~~~~~~~~~~~

`Boundaries - Community Areas
(current) <https://data.cityofchicago.org/Facilities-Geographic-Boundaries/Boundaries-Community-Areas-current-/cauq-8yn6>`__)

Neighborhoods
~~~~~~~~~~~~~

`Boundaries -
Neighborhoods <https://data.cityofchicago.org/Facilities-Geographic-Boundaries/Boundaries-Neighborhoods/bbvz-uum9>`__
from the City of Chicago Data Portal

Building the data
-----------------

This package uses `Invoke <http://www.pyinvoke.org/>`__ to generate the
data files that underly the Python API.

Cleaning up build files
~~~~~~~~~~~~~~~~~~~~~~~

::

    invoke clean

Building the data files
~~~~~~~~~~~~~~~~~~~~~~~

This includes the precinct to census tract crosswalk CSVs.

::

    invoke build
vcapi 1.0.1a4
Python CLI for Veracode's API
Keywords: veracode

vcapi
=====

vcapi is a python cli wrapper to veracode's upload api.

Usage
-----

Save your credentials in a two line file named .veracoderc in your home directory, or specify a credential file
with the --cred-file option. The file should have your username on the first line and your password on the second line.

::

    Usage: vcapi [OPTIONS] COMMAND [ARGS]...

      Veracode command line interface

    Options:
      --cred-file TEXT  Two line file containing username and password.
      -v, --verbose     Enables logging
      --help            Show this message and exit.

    Commands:
      begin-prescan        Begins the prescan.
      begin-scan           Begins a scan
      create-app           Creates a new app.
      create-build         Creates a build.
      delete-build         Deletes a build.
      get-app-info         Gets information for a particular app.
      get-app-list         Gets a list of apps and their ids.
      get-build-info       Gets info for an app build.
      get-build-list       Gets a list of builds for an app.
      get-file-list        Gets a list of files uploaded to a build.
      get-policy-list      Gets a list of policies you have defined.
      get-prescan-results  Gets the results of a prescan.
      get-vendor-list      Gets a list of vendors you have defined.
      remove-file          Removes a file from an app.
      update-app           Updates an app.
      update-build         Updates build infomation for a build.
      upload-file          Uploads a file

Examples
--------

List all the apps you have access to::

    vcapi get-app-list

Get help on a particular command::

    vcapi update-app --help

Perform a command with verbosity::

    vcapi -v get-app-list