{"id":45943,"library":"squarelet","title":"Squarelet Python Client","description":"Python library for token-based authentication with MuckRock and DocumentCloud APIs. Current version 0.3.1, compatible with Python 3.8 to 3.12. Low release cadence.","status":"active","version":"0.3.1","language":"python","source_language":"en","source_url":"https://github.com/MuckRock/python-squarelet","tags":["muckrock","documentcloud","authentication","api-client"],"install":[{"cmd":"pip install squarelet","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Correct import for the main client class.","symbol":"Client","correct":"from squarelet import Client"},{"note":"Class name is Client, not SquareletClient.","wrong":"from squarelet import SquareletClient","symbol":"Client","correct":"from squarelet.client import Client"},{"note":"Direct import works via __init__.py.","wrong":"import squarelet; client = squarelet.Client()","symbol":"Client","correct":"from squarelet.client import Client"}],"quickstart":{"code":"from squarelet import Client\nimport os\n\nclient = Client(\n    api_token=os.environ.get('SQUARELET_API_TOKEN', ''),\n    base_url=os.environ.get('SQUARELET_BASE_URL', 'https://api.muckrock.com')\n)\n# Example: get current user\nuser = client.me()\nprint(user)\n","lang":"python","description":"Initialize client with API token from environment."},"warnings":[{"fix":"client = Client(api_token=..., base_url='https://api.documentcloud.org')","message":"The base_url defaults to MuckRock's API; for DocumentCloud, set base_url='https://api.documentcloud.org'. You must specify the correct base_url for your service.","severity":"gotcha","affected_versions":"all"},{"fix":"Generate a token with proper scopes from your service's settings.","message":"The API token must have the 'publish:squarelet' scope. If you get 403 errors, check token permissions.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Python 3.8–3.12, or pin version.","message":"Python 3.12 is the maximum supported version; library may not work on 3.13+.","severity":"deprecated","affected_versions":"0.3.1"}],"env_vars":null,"search_vec":"'0.3.1':18 '3.12':24 '3.8':22 'api':15,32 'api-cli':31 'authent':10,30 'base':9 'cadenc':27 'client':3,33 'compat':19 'current':16 'documentcloud':14,29 'librari':5 'low':25 'muckrock':12,28 'python':2,4,21 'releas':26 'squarelet':1 'token':8 'token-bas':7 'version':17","created_at":"2026-06-07T12:57:30.135513+00:00","updated_at":"2026-06-07T12:57:30.135513+00:00","problems":{"verify_error":"× No solution found when resolving dependencies:\n  ╰─▶ Because squarelet was not found in the package registry and you require\n      squarelet, we can conclude that your requirements are unsatisfiable."},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/MuckRock/python-squarelet","github":"https://github.com/MuckRock/python-squarelet","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}