A minimal Python wrapper around the App Center REST API
Перейти к файлу
Dale Myers 3918081e2e Bump to v5.0.0 2024-06-19 14:03:55 +01:00
.azure Bump dependencies (#50) 2024-05-29 17:10:34 +08:00
.github/workflows Update 2023-08-09 12:46:22 +08:00
.vscode Bump dev dependencies 2024-05-08 09:35:02 +01:00
appcenter Update main dependencies 2024-06-17 13:50:44 +01:00
tests Update main dependencies 2024-06-17 13:50:44 +01:00
.gitignore Ignore test data 2022-01-24 19:24:22 +00:00
CODE_OF_CONDUCT.md Initial commit 2019-09-20 04:19:31 -07:00
LICENSE Initial commit 2019-09-20 04:19:33 -07:00
README.md Replace owner_name with org_name 2024-05-17 10:25:28 +01:00
SECURITY.md Initial commit 2019-09-20 04:19:35 -07:00
inlinecss.py Reformatted code using black 2023-04-12 17:33:32 +08:00
poetry.lock Merge branch 'main' into dalemyers/blob 2024-06-18 12:30:04 +08:00
pylintrc Fix linting issues 2023-04-12 17:12:19 +08:00
pyproject.toml Bump to v5.0.0 2024-06-19 14:03:55 +01:00
stylecheck.sh Move virtualenv to venv 2020-09-21 08:29:08 +01:00
test.sh Initial version 2019-09-24 14:07:55 +01:00

README.md

This is a minimal Python wrapper around the App Center REST APIs to get you up and running. If you are looking for something more substantial, please refer to the REST API documentation: https://openapi.appcenter.ms/

You can install with pip install appcenter

Usage

# 1. Import the library
import appcenter

# 2. Create a new client
client = appcenter.AppCenterClient(access_token="abc123def456")

# 3. Check some error groups
start = datetime.datetime.now() - datetime.timedelta(days=10)
for group in client.crashes.get_error_groups(org_name="org", app_name="myapp", start_time=start):
    print(group.errorGroupId)

# 4. Get recent versions
for version in client.versions.all(org_name="org", app_name="myapp"):
    print(version)

# 5. Create a new release
client.versions.upload_and_release(
    org_name="org",
    app_name="myapp",
    version="0.1",
    build_number="123",
    binary_path="/path/to/some.ipa",
    group_id="12345678-abcd-9012-efgh-345678901234",
    release_notes="These are some release notes",
    branch_name="test_branch",
    commit_hash="1234567890123456789012345678901234567890",
    commit_message="This is a commit message"
)

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.