parsons


Nameparsons JSON
Version 3.1.0 PyPI version JSON
download
home_pagehttps://github.com/move-coop/parsons
Summary
upload_time2024-03-05 21:31:34
maintainer
docs_urlNone
authorThe Movement Cooperative
requires_python>=3.7.0,<3.11.0
license
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-10.

## 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": "",
    "docs_url": null,
    "requires_python": ">=3.7.0,<3.11.0",
    "maintainer_email": "",
    "keywords": "PROGRESSIVE,API,ETL",
    "author": "The Movement Cooperative",
    "author_email": "info@movementcooperative.org",
    "download_url": "https://files.pythonhosted.org/packages/cb/d0/0eaa6ed46335faf4078e5d4f1edc2eea018787f4ae900a4cab37da6bdf8c/parsons-3.1.0.tar.gz",
    "platform": null,
    "description": "# Parsons\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 organizations, 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 tools, 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 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.\n\nParsons is only supported for Python 3.8-10.\n\n## Table of Contents\n- [License and Usage](#license-and-usage)\n- [Documentation](#documentation)\n- [Installation](#installation)\n- [Quickstart](#quickstart)\n- [Community](#community) \n\n## License and Usage\nUsage of Parsons is governed by a [modified Apache License with author attribution statement](https://github.com/move-coop/parsons/blob/main/LICENSE.md).\n\n## Documentation\nTo 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).\n\n## Installation\n\n\n### PYPI\nYou can install the most recent release by running: `pip install parsons[all]`\n\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 repository and then run `python setup.py develop`.\n\n### Docker Container\nWe have a Parsons Docker container hosted on [DockerHub](https://hub.docker.com/r/movementcooperative/parsons) for each release 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 a [dummy data file](docs/quickstart.csv). We use the `assert` statements to verify that the data has been loaded correctly.\n\n```python\n# Download the Census data from the Parsons GitHub repository\nfrom parsons import GitHub\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\nsheets = GoogleSheets()\nsheet_id = sheets.create_spreadsheet('Voter Cell Phones')\nsheets.append_to_sheet(sheet_id, people_with_cell_phones)\n```\n\n## Community\nWe 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.\n\nYou 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!\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "",
    "version": "3.1.0",
    "project_urls": {
        "Homepage": "https://github.com/move-coop/parsons"
    },
    "split_keywords": [
        "progressive",
        "api",
        "etl"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8bd9f9aec0d78156006804219377e8745f69afd80a6e277701cc524bc6214d92",
                "md5": "3416bcea0b44e0bd5aae6c66471c7f27",
                "sha256": "1f6118c67fb6e9c33f2200dbb015eeb41ef09fffdf95f494a929c982f9ffdb7f"
            },
            "downloads": -1,
            "filename": "parsons-3.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3416bcea0b44e0bd5aae6c66471c7f27",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.0,<3.11.0",
            "size": 466909,
            "upload_time": "2024-03-05T21:31:32",
            "upload_time_iso_8601": "2024-03-05T21:31:32.381843Z",
            "url": "https://files.pythonhosted.org/packages/8b/d9/f9aec0d78156006804219377e8745f69afd80a6e277701cc524bc6214d92/parsons-3.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cbd00eaa6ed46335faf4078e5d4f1edc2eea018787f4ae900a4cab37da6bdf8c",
                "md5": "40304a78c7286c9bb94d31a56b00cf92",
                "sha256": "81a3f850104b68c4210b98761ef5da99e3bc8112ab87bf25ec326de20c9b1834"
            },
            "downloads": -1,
            "filename": "parsons-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "40304a78c7286c9bb94d31a56b00cf92",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.0,<3.11.0",
            "size": 369790,
            "upload_time": "2024-03-05T21:31:34",
            "upload_time_iso_8601": "2024-03-05T21:31:34.569835Z",
            "url": "https://files.pythonhosted.org/packages/cb/d0/0eaa6ed46335faf4078e5d4f1edc2eea018787f4ae900a4cab37da6bdf8c/parsons-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-05 21:31:34",
    "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: 0.63468s