# gogov
Unofficial API Client for GoGov CRM
## install
```sh
pip install gogov
```
## basic CLI usage
```sh
gogov export-requests --email="jdoe@fakecity.gov" --password="2c56477e97ab8b2d180a6513" --site="fakecityXYZ" --city-id="123" $PWD/requests.csv
```
## basic Python usage
```python
from gogov import Client
# client automatically logs in when initialized
client = Client(
username = "jdoe",
password = "2c56477e97ab8b2d180a6513",
site = "fakecityXYZ",
city_id = "123"
)
## download csv of all requests to a file
client.export_requests("requests.csv")
## Submit a 311 request
location = {
"shortAddress": "123 Any Street, Anytown, TN, 12345",
"coordinates": {
"longitude": -12.345678
"latitude": 87.654321
}
}
# Use "fields" for any additional necessary fields
client.submit_request(
topic_id="12345"
location=location,
description="Test"
contact_id=1234567
assigned_to_id=7654321
fields = [{"id": "field1", "value": "value1"}, {"id": "field2", "value": "value2}]
)
## log out
client.logout()
```
## advanced usage
coming soon
Raw data
{
"_id": null,
"home_page": "https://github.com/officeofperformancemanagement/gogov",
"name": "gogov",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "crm, data, gogov, python",
"author": "Daniel J. Dufour",
"author_email": "daniel.j.dufour@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/74/d6/0a82b0496716aa743b49f4b0281c7b789b5a2accf3c9723225cb69a6dd8b/gogov-0.8.4.tar.gz",
"platform": null,
"description": "# gogov\r\nUnofficial API Client for GoGov CRM\r\n\r\n## install\r\n```sh\r\npip install gogov\r\n```\r\n\r\n## basic CLI usage\r\n```sh\r\ngogov export-requests --email=\"jdoe@fakecity.gov\" --password=\"2c56477e97ab8b2d180a6513\" --site=\"fakecityXYZ\" --city-id=\"123\" $PWD/requests.csv\r\n```\r\n\r\n## basic Python usage\r\n```python\r\nfrom gogov import Client\r\n\r\n# client automatically logs in when initialized\r\nclient = Client(\r\n username = \"jdoe\",\r\n password = \"2c56477e97ab8b2d180a6513\",\r\n site = \"fakecityXYZ\",\r\n city_id = \"123\"\r\n)\r\n\r\n## download csv of all requests to a file\r\nclient.export_requests(\"requests.csv\")\r\n\r\n## Submit a 311 request\r\nlocation = {\r\n \"shortAddress\": \"123 Any Street, Anytown, TN, 12345\",\r\n \"coordinates\": {\r\n \"longitude\": -12.345678\r\n \"latitude\": 87.654321\r\n }\r\n}\r\n\r\n# Use \"fields\" for any additional necessary fields\r\nclient.submit_request(\r\n topic_id=\"12345\"\r\n location=location,\r\n description=\"Test\"\r\n contact_id=1234567\r\n assigned_to_id=7654321\r\n fields = [{\"id\": \"field1\", \"value\": \"value1\"}, {\"id\": \"field2\", \"value\": \"value2}]\r\n)\r\n\r\n## log out\r\nclient.logout()\r\n```\r\n\r\n## advanced usage\r\ncoming soon\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Unofficial API Client for GoGov CRM",
"version": "0.8.4",
"project_urls": {
"Download": "https://github.com/officeofperformancemanagement/gogov/tarball/download",
"Homepage": "https://github.com/officeofperformancemanagement/gogov"
},
"split_keywords": [
"crm",
" data",
" gogov",
" python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "74d60a82b0496716aa743b49f4b0281c7b789b5a2accf3c9723225cb69a6dd8b",
"md5": "4850fff4bfe5b1e35034b818a8918d69",
"sha256": "c79792ed16185dbcbc041444ac7f5045e1a5f458ded683dce2b1bd0669306815"
},
"downloads": -1,
"filename": "gogov-0.8.4.tar.gz",
"has_sig": false,
"md5_digest": "4850fff4bfe5b1e35034b818a8918d69",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18305,
"upload_time": "2025-07-10T18:27:24",
"upload_time_iso_8601": "2025-07-10T18:27:24.831108Z",
"url": "https://files.pythonhosted.org/packages/74/d6/0a82b0496716aa743b49f4b0281c7b789b5a2accf3c9723225cb69a6dd8b/gogov-0.8.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-10 18:27:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "officeofperformancemanagement",
"github_project": "gogov",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "flatmate",
"specs": []
},
{
"name": "requests",
"specs": []
}
],
"lcname": "gogov"
}