parsons


Nameparsons JSON
Version 3.2.0 PyPI version JSON
download
home_pagehttps://github.com/move-coop/parsons
SummaryNone
upload_time2024-07-24 18:16:58
maintainerNone
docs_urlNone
authorThe Movement Cooperative
requires_python<3.13.0,>=3.8.0
licenseNone
keywords progressive api etl
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Parsons

[![Downloads](https://pepy.tech/badge/parsons)](https://pepy.tech/project/parsons)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/parsons)](https://pypi.org/project/parsons/)
[![PyPI](https://img.shields.io/pypi/v/parsons?color=blue)](https://pypi.org/project/parsons/)
[![CircleCI](https://circleci.com/gh/move-coop/parsons/tree/main.svg?style=shield)](https://circleci.com/gh/move-coop/parsons/tree/main)

A Python package that provides a simple interface to a variety of utilities and tools frequently used by progressive
organizations, political and issue campaigns, activists, and other allied actors.

Parsons offers simplified interactions with these services and tools, including a growing number of CRMs, organizing
tools, cloud compute service providers, as well as tools to easily transform data in transit.

This project is maintained by [The Movement Cooperative](https://movementcooperative.org/) and is named
after [Lucy Parsons](https://en.wikipedia.org/wiki/Lucy_Parsons). The Movement Cooperative is a member-led organization
focused on providing data, tools, and strategic support for the progressive community.

Parsons is only supported for Python 3.8-12.

## Table of Contents

- [License and Usage](#license-and-usage)
- [Documentation](#documentation)
- [Installation](#installation)
- [Quickstart](#quickstart)
- [Community](#community)

## License and Usage

Usage of Parsons is governed by
a [modified Apache License with author attribution statement](https://github.com/move-coop/parsons/blob/main/LICENSE.md).

## Documentation

To gain a full understanding of all of the features of Parsons, please review the
Parsons [documentation](https://move-coop.github.io/parsons/html/index.html).

## Installation

### PYPI

You can install the most recent release by running: `pip install parsons[all]`

### Install from Github

To access the most recent code base that may contain features not yet included in the latest release, download this
repository and then run `python setup.py develop`.

### Docker Container

We have a Parsons Docker container hosted on [DockerHub](https://hub.docker.com/r/movementcooperative/parsons) for each
release of Parsons, including the `latest`.

## Quickstart

For this Quickstart, we are looking to generate a list of voters with cell phones using
a [dummy data file](docs/quickstart.csv). We use the `assert` statements to verify that the data has been loaded
correctly.

```python
# Download the Census data from the Parsons GitHub repository
from parsons import GitHub

github = GitHub()
dummy_data = github.download_table('move-coop/parsons', 'docs/quickstart.csv')
assert dummy_data.num_rows == 1000  # Check that we got all 1,000 people

# Filter down to people with cell phones
people_with_cell_phones = dummy_data.select_rows(lambda row: row['is_cell'] == 'true')
assert people_with_cell_phones.num_rows == 498  # Check that we filtered down to our 498 people

# Extract only the columns we need (first name, last name, phone number)
people_with_cell_phones = people_with_cell_phones.cut('first_name', 'last_name', 'phone_number')
assert people_with_cell_phones.columns == ['first_name', 'last_name', 'phone_number']  # Check columns

# Output the list to a local CSV file
filename = people_with_cell_phones.to_csv()  # filename will be the path to the local CSV file

# In order to upload data to a Google Sheet, you will need to set the GOOGLE_DRIVE_CREDENTIALS
# environment variable
from parsons import GoogleSheets

sheets = GoogleSheets()
sheet_id = sheets.create_spreadsheet('Voter Cell Phones')
sheets.append_to_sheet(sheet_id, people_with_cell_phones)
```

## Community

We hope to foster a strong and robust community of individuals who use and contribute to further development.
Individuals are encouraged to submit issues with bugs, suggestions and feature
requests. [Here](https://github.com/move-coop/parsons/blob/main/CONTRIBUTING.md) are the guidelines and best practices
for contributing to Parsons.

You can also stay up to date by joining the Parsons Slack group, an active community of Parsons contributors and
progressive data engineers. For an invite, just reach out to engineering+parsons@movementcooperative.org!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/move-coop/parsons",
    "name": "parsons",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13.0,>=3.8.0",
    "maintainer_email": null,
    "keywords": "PROGRESSIVE, API, ETL",
    "author": "The Movement Cooperative",
    "author_email": "info@movementcooperative.org",
    "download_url": null,
    "platform": null,
    "description": "# Parsons\n\n[![Downloads](https://pepy.tech/badge/parsons)](https://pepy.tech/project/parsons)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/parsons)](https://pypi.org/project/parsons/)\n[![PyPI](https://img.shields.io/pypi/v/parsons?color=blue)](https://pypi.org/project/parsons/)\n[![CircleCI](https://circleci.com/gh/move-coop/parsons/tree/main.svg?style=shield)](https://circleci.com/gh/move-coop/parsons/tree/main)\n\nA Python package that provides a simple interface to a variety of utilities and tools frequently used by progressive\norganizations, political and issue campaigns, activists, and other allied actors.\n\nParsons offers simplified interactions with these services and tools, including a growing number of CRMs, organizing\ntools, cloud compute service providers, as well as tools to easily transform data in transit.\n\nThis project is maintained by [The Movement Cooperative](https://movementcooperative.org/) and is named\nafter [Lucy Parsons](https://en.wikipedia.org/wiki/Lucy_Parsons). The Movement Cooperative is a member-led organization\nfocused on providing data, tools, and strategic support for the progressive community.\n\nParsons is only supported for Python 3.8-12.\n\n## Table of Contents\n\n- [License and Usage](#license-and-usage)\n- [Documentation](#documentation)\n- [Installation](#installation)\n- [Quickstart](#quickstart)\n- [Community](#community)\n\n## License and Usage\n\nUsage of Parsons is governed by\na [modified Apache License with author attribution statement](https://github.com/move-coop/parsons/blob/main/LICENSE.md).\n\n## Documentation\n\nTo gain a full understanding of all of the features of Parsons, please review the\nParsons [documentation](https://move-coop.github.io/parsons/html/index.html).\n\n## Installation\n\n### PYPI\n\nYou can install the most recent release by running: `pip install parsons[all]`\n\n### Install from Github\n\nTo access the most recent code base that may contain features not yet included in the latest release, download this\nrepository and then run `python setup.py develop`.\n\n### Docker Container\n\nWe have a Parsons Docker container hosted on [DockerHub](https://hub.docker.com/r/movementcooperative/parsons) for each\nrelease of Parsons, including the `latest`.\n\n## Quickstart\n\nFor this Quickstart, we are looking to generate a list of voters with cell phones using\na [dummy data file](docs/quickstart.csv). We use the `assert` statements to verify that the data has been loaded\ncorrectly.\n\n```python\n# Download the Census data from the Parsons GitHub repository\nfrom parsons import GitHub\n\ngithub = GitHub()\ndummy_data = github.download_table('move-coop/parsons', 'docs/quickstart.csv')\nassert dummy_data.num_rows == 1000  # Check that we got all 1,000 people\n\n# Filter down to people with cell phones\npeople_with_cell_phones = dummy_data.select_rows(lambda row: row['is_cell'] == 'true')\nassert people_with_cell_phones.num_rows == 498  # Check that we filtered down to our 498 people\n\n# Extract only the columns we need (first name, last name, phone number)\npeople_with_cell_phones = people_with_cell_phones.cut('first_name', 'last_name', 'phone_number')\nassert people_with_cell_phones.columns == ['first_name', 'last_name', 'phone_number']  # Check columns\n\n# Output the list to a local CSV file\nfilename = people_with_cell_phones.to_csv()  # filename will be the path to the local CSV file\n\n# In order to upload data to a Google Sheet, you will need to set the GOOGLE_DRIVE_CREDENTIALS\n# environment variable\nfrom parsons import GoogleSheets\n\nsheets = GoogleSheets()\nsheet_id = sheets.create_spreadsheet('Voter Cell Phones')\nsheets.append_to_sheet(sheet_id, people_with_cell_phones)\n```\n\n## Community\n\nWe hope to foster a strong and robust community of individuals who use and contribute to further development.\nIndividuals are encouraged to submit issues with bugs, suggestions and feature\nrequests. [Here](https://github.com/move-coop/parsons/blob/main/CONTRIBUTING.md) are the guidelines and best practices\nfor contributing to Parsons.\n\nYou can also stay up to date by joining the Parsons Slack group, an active community of Parsons contributors and\nprogressive data engineers. For an invite, just reach out to engineering+parsons@movementcooperative.org!\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "3.2.0",
    "project_urls": {
        "Homepage": "https://github.com/move-coop/parsons"
    },
    "split_keywords": [
        "progressive",
        " api",
        " etl"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e0af2247b626e1c4ccc25993453269e596f351e1f35df0fafc390272078cda22",
                "md5": "1037480f5a03501b755b4e8702b801db",
                "sha256": "ec8d933e112e1389a63a5b9d4ca37e29922cead23e56a7b42fa9087e02a17148"
            },
            "downloads": -1,
            "filename": "parsons-3.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1037480f5a03501b755b4e8702b801db",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13.0,>=3.8.0",
            "size": 486850,
            "upload_time": "2024-07-24T18:16:58",
            "upload_time_iso_8601": "2024-07-24T18:16:58.641900Z",
            "url": "https://files.pythonhosted.org/packages/e0/af/2247b626e1c4ccc25993453269e596f351e1f35df0fafc390272078cda22/parsons-3.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-24 18:16:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "move-coop",
    "github_project": "parsons",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "circle": true,
    "requirements": [],
    "lcname": "parsons"
}
        
Elapsed time: 1.39892s