{"id":47838283,"url":"https://github.com/fogstream/fs-cdek-api","last_synced_at":"2026-04-03T20:35:10.453Z","repository":{"id":57432361,"uuid":"183990161","full_name":"fogstream/fs-cdek-api","owner":"fogstream","description":"API клиент для СД СДЭК","archived":false,"fork":false,"pushed_at":"2023-12-28T12:44:13.000Z","size":37,"stargazers_count":15,"open_issues_count":1,"forks_count":9,"subscribers_count":7,"default_branch":"dev","last_synced_at":"2025-08-31T19:51:31.424Z","etag":null,"topics":["api","cdek","cdek-api","delivery","library","python","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fogstream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-29T03:00:43.000Z","updated_at":"2025-07-29T20:52:52.000Z","dependencies_parsed_at":"2022-09-17T03:51:24.287Z","dependency_job_id":null,"html_url":"https://github.com/fogstream/fs-cdek-api","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/fogstream/fs-cdek-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogstream%2Ffs-cdek-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogstream%2Ffs-cdek-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogstream%2Ffs-cdek-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogstream%2Ffs-cdek-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogstream","download_url":"https://codeload.github.com/fogstream/fs-cdek-api/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogstream%2Ffs-cdek-api/sbom","scorecard":{"id":405971,"data":{"date":"2025-08-11","repo":{"name":"github.com/fogstream/fs-cdek-api","commit":"9597fdc7484700a58e89423f809909b2edb0d7fa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"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":"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":"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":"Code-Review","score":2,"reason":"Found 3/11 approved changesets -- score normalized to 2","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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: pipCommand not pinned by hash: scripts/build.sh:71","Warn: pipCommand not pinned by hash: scripts/build.sh:78","Info:   0 out of   2 pipCommand dependencies pinned"],"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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 'dev'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 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","Warn: Project is vulnerable to: PYSEC-2015-17","Warn: Project is vulnerable to: PYSEC-2023-74"],"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-18T21:16:18.918Z","repository_id":57432361,"created_at":"2025-08-18T21:16:18.918Z","updated_at":"2025-08-18T21:16:18.918Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31375769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"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","cdek","cdek-api","delivery","library","python","wrapper"],"created_at":"2026-04-03T20:35:10.170Z","updated_at":"2026-04-03T20:35:10.426Z","avatar_url":"https://github.com/fogstream.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"CDEK-API\n===========\n\n[![Build Status](https://travis-ci.org/fogstream/fs-cdek-api.svg?branch=dev)](https://travis-ci.org/fogstream/fs-cdek-api)\n[![Coverage Status](https://coveralls.io/repos/github/fogstream/fs-cdek-api/badge.svg?branch=dev)](https://coveralls.io/github/fogstream/fs-cdek-api?branch=dev)\n[![PyPI Version](https://img.shields.io/pypi/v/fs-cdek-api.svg)](https://pypi.python.org/pypi/fs-cdek-api)\n\n\nОписание\n------------\nБиблиотека упрощающая работу с API службы доставки [СДЭК](https://www.cdek.ru/).\n\nУстановка\n------------\nДля работы требуется Python 3.6+\nДля установки используйте [pipenv](http://pipenv.org/) (или pip):\n\n```bash\n$ pipenv install fs-cdek-api\n$ pip install fs-cdek-api\n```\n\nПримеры\n-------------\n\n### Запрос доставки\n```python\ndelivery_request = DeliveryRequest(number='12345678')\norder = delivery_request.add_order(\n    number=randint(100000, 1000000),\n    recipient_name='Иванов Иван Иванович',\n    phone='+79999999999',\n    send_city_post_code='680000',\n    rec_city_post_code='680000',\n    seller_name='Магазин',\n    comment='Товар',\n    tariff_type_code=138,\n    shipping_price=300.0,\n)\ndelivery_request.add_address(order, pvz_code='XAB1')\npackage = delivery_request.add_package(\n    order_element=order,\n    size_a=10,\n    size_b=10,\n    size_c=10,\n    number=randint(100000, 1000000),\n    barcode=randint(100000, 1000000),\n    weight=600,\n)\ndelivery_request.add_item(\n    package_element=package,\n    weight=500,\n    cost=1000,\n    ware_key='12345678',\n    comment='Товар',\n)\n\ncdek_client = CDEKClient('login', 'pass')\ndelivery_orders = cdek_client.create_orders(delivery_request)\n```\n\n### Удаление заказа\nУсловием возможности удаления заказа является отсутствие движения груза на \nскладе СДЭК (статус заказа «Создан»).\n```python\ndelete_requests = cdek_client.delete_orders(\n    act_number=act_number,\n    dispatch_numbers=[dispatch_number],\n)\n```\n\n### Вызов курьера для забора груза ИМ\n```python\ndispatch_number = order['DispatchNumber']\n\nnext_day = datetime.date.today() + datetime.timedelta(days=1)\n\ncall_courier = CallCourier()\ncall_request = call_courier.add_call(\n    date=next_day,\n    dispatch_number=dispatch_number,\n    sender_phone='+79999999999',\n    time_begin=datetime.time(hour=10),\n    time_end=datetime.time(hour=17),\n    lunch_begin=datetime.time(hour=13),\n    lunch_end=datetime.time(hour=14),\n)\ncall_courier.add_address(\n    call_element=call_request,\n    address_street='Пушкина',\n    address_house='50',\n    address_flat='1',\n)\n\ncall = cdek_client.call_courier(call_courier)\n```\n\n### Информация о заказах\n```python\ndispatch_number = order['DispatchNumber']\ninfo = cdek_client.get_orders_info([dispatch_number])\n```\n\n### Статусы заказов\n```python\ndispatch_number = order['DispatchNumber']\ninfo = cdek_client.get_orders_statuses([dispatch_number])\n```\n\n### Печать накладной\nВозврщает `pdf` документ в случае успеха.\n```python\norder_print = cdek_client.get_orders_print([dispatch_number])\n```\n\n### Печать ШК-мест\nВозврщает `pdf` документ в случае успеха.\n```python\nbarcode_print = cdek_client.get_barcode_print([dispatch_number])\n```\n\n### Список регионов\n```python\nregions = cdek_client.get_regions(region_code_ext=27)\n```\n\n### Список городов\n```python\ncities = cdek_client.get_cities(region_code_ext=27)\n```\n\n### Список ПВЗ\n```python\npvz_list = cdek_client.get_delivery_points(city_post_code=680000)['pvz']\n```\n\n### Расчет стоимости доставки\n```python\nshipping_costs = cdek_client.get_shipping_cost(\n    sender_city_id=270,\n    receiver_city_id=44,\n    goods=[\n        {'weight': 0.3, 'length': 10, 'width': 7, 'height': 5},\n        {'weight': 0.1, 'volume': 0.1},\n    ],\n    tariff_id=3,\n)\n```\n\n### Создание преалерта\n```python\nnext_day = datetime.date.today() + datetime.timedelta(days=1)\n\npre_alert_element = PreAlert(planned_meeting_date=next_day, pvz_code='XAB1')\npre_alert_element.add_order(dispatch_number=dispatch_number)\npre_alerts = cdek_client.create_prealerts(pre_alert_element)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogstream%2Ffs-cdek-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogstream%2Ffs-cdek-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogstream%2Ffs-cdek-api/lists"}