BC2AppSource
A Python package for publishing Business Central apps to Microsoft AppSource.
Installation
pip install bc2appsource
Usage
Command Line Interface
# Publish an app to AppSource
bc2appsource publish \
--app-file path/to/your/app.app \
--tenant-id your-tenant-id \
--client-id your-client-id \
--client-secret your-client-secret \
--product-name "Your Product Name"
# With library app file
bc2appsource publish \
--app-file path/to/your/app.app \
--library-app-file path/to/library.app \
--tenant-id your-tenant-id \
--client-id your-client-id \
--client-secret your-client-secret \
--product-name "Your Product Name"
Python API
from bc2appsource import AppSourcePublisher
publisher = AppSourcePublisher(
tenant_id="your-tenant-id",
client_id="your-client-id",
client_secret="your-client-secret"
)
# Publish app
result = publisher.publish(
app_file="path/to/your/app.app",
product_name="Your Product Name",
library_app_file="path/to/library.app", # Optional
auto_promote=True
)
if result.success:
print(f"Submission ID: {result.submission_id}")
else:
print(f"Error: {result.error}")
Authentication
You need to register an Azure AD application with the following permissions:
- Microsoft Partner Center API access
- Application permissions for submitting to AppSource
Environment Variables
You can also use environment variables instead of passing credentials:
export AZURE_TENANT_ID=your-tenant-id
export AZURE_CLIENT_ID=your-client-id
export AZURE_CLIENT_SECRET=your-client-secret
GitHub Actions
This package can be used in GitHub Actions workflows:
- name: Install bc2appsource
run: pip install bc2appsource
- name: Publish to AppSource
run: |
bc2appsource publish \
--app-file artifacts/*.app \
--product-name "${{ github.event.repository.name }}"
env:
AZURE_TENANT_ID: ${{ secrets.APPSOURCE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.APPSOURCE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.APPSOURCE_CLIENT_SECRET }}
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for bc2appsource 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bc2appsource-0.1.8.tar.gz | 12.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bc2appsource-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.4 kB
Release files / bc2appsource-0.1.8.tar.gz
| Download URL | bc2appsource-0.1.8.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46114a11764041a4a0e077d2172a87375f4b3aa9f4a5f88bce3d9f8b98807fa4
|
|
BLAKE2b-256 checksum How to use checksums |
64ed2b7025aa0be52c140b9df73afee3384aeaaec2403fff25cd7303b455b6db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 29, 2025.
Transparency logRelease files / bc2appsource-0.1.8-py3-none-any.whl
| Download URL | bc2appsource-0.1.8-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
670fca2880a0d34cf4dca122777c0c75bfab1108b83422aa904e40bb97d54b28
|
|
BLAKE2b-256 checksum How to use checksums |
747fec23c2ce0efbdacc712620308b3cc46d8b68c7e451225f42140c3c29e7c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 29, 2025.
Transparency logSecurity for bc2appsource 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for bc2appsource-0.1.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 29, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.