{"id":40064208,"url":"https://github.com/koty/python-stackpath","last_synced_at":"2026-01-19T07:34:16.422Z","repository":{"id":57470997,"uuid":"85909300","full_name":"koty/python-stackpath","owner":"koty","description":"A Python REST Client for StackPath REST Web Services. This package is forked from https://github.com/MaxCDN/python-maxcdn/","archived":false,"fork":false,"pushed_at":"2017-03-23T07:11:53.000Z","size":9,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-27T23:30:08.386Z","etag":null,"topics":["api-client","cdn","python","stackpath"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/stackpath/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-23T05:08:49.000Z","updated_at":"2020-09-29T22:35:33.000Z","dependencies_parsed_at":"2022-09-10T02:02:23.732Z","dependency_job_id":null,"html_url":"https://github.com/koty/python-stackpath","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/koty/python-stackpath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koty%2Fpython-stackpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koty%2Fpython-stackpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koty%2Fpython-stackpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koty%2Fpython-stackpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koty","download_url":"https://codeload.github.com/koty/python-stackpath/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koty%2Fpython-stackpath/sbom","scorecard":{"id":568442,"data":{"date":"2025-08-11","repo":{"name":"github.com/koty/python-stackpath","commit":"48ea46001fbedae70846da27a160642450527149"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T15:38:38.045Z","repository_id":57470997,"created_at":"2025-08-20T15:38:38.045Z","updated_at":"2025-08-20T15:38:38.045Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","cdn","python","stackpath"],"created_at":"2026-01-19T07:34:13.386Z","updated_at":"2026-01-19T07:34:16.416Z","avatar_url":"https://github.com/koty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"StackPath REST Web Services Python Client. This package is forked from https://github.com/MaxCDN/python-maxcdn/\n\nInstallation\n------------\n\n```\npip install stackpath\n```\n\nUsage\n-----\n\n```python\nfrom stackpath import StackPath\n\napi = StackPath(\"myalias\", \"consumer_key\", \"consumer_secret\")\n\n# Get Account Info\napi.get(\"/account\")\n\n# Create Site\napi.post(\"/sites\", {'name': 'mypullzone', 'url': 'http://yourorigin.com', 'compress': '1'})\n\n# Update Site\napi.put(\"/sites/12345\", {'url': 'http://neworigin.com'})\n\n# Purge All Cache\napi.purge(12345)\n\n# Purge File\napi.purge(12345, data={'file': '/my-file.png'})\n\n```\n\nMethods\n-------\n\nIt has support for `GET`, `POST`, `PUT` and `DELETE` OAuth signed requests.\n\nWe now have a shortcut for Purge Calls!\n--------------------------------------\n\n```python\nsite_id = 12345\n\n# Purge Zone\napi.purge(site_id)\n\n# Purge File\napi.purge(site_id, '/some_file')\n\n# Purge Files\napi.purge(site_id, ['/some_file', '/another_file'])\n```\n\nEvery request can take an optional debug parameter.\n```python\napi.get(\"account\", debug=True)\n# Will output\n# Making GET request to http://rws.netdna.com/myalias/account\n#{... API Returned Stuff ...}\n\nEvery request can also take an optional debug_json parameter if you don't like the exception based errors.\napi.get('account', debug_json=True)\n```\n\n\nInitialization\n--------------\n\nFor applications that don't require user authentication,\nyou can use the default initialization as the example above.\n\nFor applications that require user authentication, you can\ninitialize the API as follows.\n\n```python\napi = StackPath(\"myalias\", \"consumer_key\", \"consumer_secret\")\n```\n\nYou can also send the optional parameter header_auth, which takes a boolean\nto send the OAuth header in the body or URLEncoded.\n\nDevelopment\n-----------\n\n```\ngit clone https://github.com/koty/python-stackpath.git\ncd python-stackpath\n\nmake          # setup and test\nmake setup    # installation w/ deps\nmake test     # test w/ primary python\nmake int      # integration tests w/ primary python\nmake test/all # test w/ python2 python3.2 python3.3 python3.4\nmake int      # integration tests\nmake int/all  # integration w/ python2 python3.2 python3.3 python3.4\nmake nose     # verbose test output w/ nosetests\n```\n\nExamples\n--------\n\nRunning examples:\n\n```\ngit clone https://github.com/koty/python-stackpath.git\ncd python-stackpath\nmake setup\n\nexport PYTHONPATH=./build:./stackpath\n\n./examples/simple.py\n./examples/report.py # [hourly|daily|monthly]\n./examples/purge.py  # [zoneid]\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoty%2Fpython-stackpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoty%2Fpython-stackpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoty%2Fpython-stackpath/lists"}