{"id":18712071,"url":"https://github.com/codepost-io/codepost-python","last_synced_at":"2025-04-12T12:31:17.744Z","repository":{"id":35050405,"uuid":"171972072","full_name":"codepost-io/codepost-python","owner":"codepost-io","description":"Provides a convenient Python interface to the codePost API. Start scripting!","archived":false,"fork":false,"pushed_at":"2024-01-19T19:57:10.000Z","size":439,"stargazers_count":56,"open_issues_count":12,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-18T13:32:24.358Z","etag":null,"topics":["api","codepost","education"],"latest_commit_sha":null,"homepage":"https://codepost.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codepost-io.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-22T01:22:06.000Z","updated_at":"2025-02-11T18:05:12.000Z","dependencies_parsed_at":"2024-06-21T16:52:54.803Z","dependency_job_id":null,"html_url":"https://github.com/codepost-io/codepost-python","commit_stats":{"total_commits":252,"total_committers":6,"mean_commits":42.0,"dds":0.3928571428571429,"last_synced_commit":"2abef855166e677f2ddeebf2a3ea6f1652bd9122"},"previous_names":["codepost-io/codepost-api-python"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codepost-io%2Fcodepost-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codepost-io%2Fcodepost-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codepost-io%2Fcodepost-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codepost-io%2Fcodepost-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codepost-io","download_url":"https://codeload.github.com/codepost-io/codepost-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566482,"owners_count":21125674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","codepost","education"],"created_at":"2024-11-07T12:40:48.578Z","updated_at":"2025-04-12T12:31:16.223Z","avatar_url":"https://github.com/codepost-io.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# codePost API Python SDK\n\n[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/codepost-python/community)\n[![Build Status](https://travis-ci.com/codepost-io/codePost-python.svg?branch=master)](https://travis-ci.com/codepost-io/codePost-python?branch=master)\n[![Coverage Status](https://coveralls.io/repos/github/codepost-io/codepost-python/badge.svg?branch=master)](https://coveralls.io/github/codepost-io/codepost-python?branch=master)\n\nThis package provides a Python library to conveniently access the codePost API\nfrom any application or script written in the Python language.\n\nYou can learn more about [codePost](https://codepost.io), the best tool for educational code feedback, or\ncheck out the documentation for powerful, best-in-class [REST API](https://docs.codepost.io/reference) that\nthis Python SDK allows you to control.\n\nYou can also dive in directly with the [codePost API Python SDK cheatsheet](https://docs.codepost.io/docs/python-sdk-cheatsheet).\n\n# Quickstart\n\nThis section provides a quick overview of how to install the library and getting started, for more complete\ninformation, you can reference our [First Steps with the codePost API Python\nSDK](https://docs.codepost.io/docs/first-steps-with-the-codepost-python-sdk).\n\n\n1. This codePost API Python SDK is available on the Python package manager PyPi, and can be installed from all\nusual sources, such as with `pip`:\n    ```shell\n    sudo pipenv install codepost\n    ```\n    You can also install the package just for your account (`pip install --user codepost`) or using a tool such\n    as `pipenv` which will install the library in a virtual environment (`pipenv install codepost`). \n2. Once you've import the `codepost` package, you need to configure it with the API key you've obtained\n    from [your Settings page](https://codepost.io/settings) \n    (for other means of setting the API key,\n    [read here](https://docs.codepost.io/docs/first-steps-with-the-codepost-python-sdk)):\n    ```python\n    import codepost\n    codepost.configure_api_key(\"ddafde24389de98434f8df3ee482389de98432afde24482f3428923491344f8df3eef34892349134\")\n    ```\n3. You can then directly access the codePost objects:\n    ```python\n    course = codepost.course.list_available(name=\"CS101\", period=\"Spring 2020\")[0]\n    assignment = course.assignments.by_name(\"Hello World\")\n    submissions = assignment.list_submissions()\n    for submission in submissions:\n        print(\"{student},{grade}\", student=\"+\".join(submission.students), grade=submission.grade)\n    ```\n    to print the grades of all submissions of the assignment `\"Hello World\"` of the course CS101 in Spring 2020.\n\n# Development\n\nThe codePost API Python SDK is under active development. At this time, we are welcoming all\nissues, suggestions and feature requests. Please either [post a GitHub issue on this\nrepository](https://github.com/codepost-io/codepost-python/issues), or [join our Gitter\nchannel](https://gitter.im/codepost-python/community) to ask a question.\n\n\n## Running tests\n\nTo start developing, install [pipenv](https://github.com/pypa/pipenv), then install\nall dependencies (including development dependencies, with the flag `--dev`) for this project:\n    \n    git clone https://github.com/codepost-io/codepost-python\n    cd codepost-python\n    pipenv install --dev\n\nRun all tests on all supported versions of Python which you have locally installed:\n\n    make test\n\nRun all tests for a specific Python version (modify `-e` according to your Python target):\n\n    pipenv run tox -e py37\n\nRun all tests in a single file for a specific Python version:\n\n    pipenv run tox -e py37 -- tests/util/test_misc.py","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodepost-io%2Fcodepost-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodepost-io%2Fcodepost-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodepost-io%2Fcodepost-python/lists"}