-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mo Balaa
committed
Dec 12, 2023
1 parent
0462d28
commit deef6ac
Showing
4 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
jobs: | ||
# build_and_test: | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Run tests | ||
# run: make test-ci | ||
|
||
pypi-publish: | ||
if: github.ref == 'refs/heads/main' | ||
name: upload release to PyPI | ||
runs-on: ubuntu-latest | ||
# Specifying a GitHub environment is optional, but strongly encouraged | ||
environment: release | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry & Build | ||
run: pip install poetry; poetry build | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Fractal Matrix Client | ||
|
||
This project is a thin wrapper around `matrix-nio`. It provides convenience helpers for working with synapse admin and the Matrix API | ||
for Matrix powered projects. | ||
|
||
## Example Usage | ||
|
||
Context manager example: | ||
```python | ||
from fractal_matrix_client import MatrixClient | ||
|
||
# Fractal Matrix Client can automatically discover the Matrix server associated with the given matrix_id if the homesrver is configured properly | ||
async with MatrixClient(matrix_id='@user:matrix.org') as client: | ||
res = await client.login('password') | ||
print(res.access_token) | ||
|
||
syt_bW8... #access_token | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters