A Python library for Atlassian Crowd REST API
Project description
crowdpy
A Python library for Atlassian Crowd REST API
Version with 1.x.x ~ 1.2.x are for distribution tests and have bugs. Please use crowdpy >= 1.3.0
Requirements
- Python >= 3.9
Installation
pip install crowdpy
Usage
from crowd import Crowd
# Initialize Crowd
crowd = Crowd(base_url: 'https://example.com/crowd', account: (ADMIN_ID, ADMIN_PW))
# Get Directories
directories = crowd.get_managed_directories()
print('Directories :', directories)
# Generate Group ID
group_id = crowd.generate_group_id(directory_id=directories[0]['id'], group_name='TestGroup')
print('Group ID :', group_id)
# Get Users by Group
users = crowd.get_users_by_group(group_id=group_id)
print(f'Users in Group [{group_id}] :', users)
Build & Deploy (PyPi)
# Build
pip install build
python -m build
# whl file & archived src(tar.gz) file will be generated.
# Deploy
pip install twine
python -m twine upload dist/*
# package will be uploaded to PyPi registry
# https://pypi.org/project/crowdpy
Authors
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crowdpy-1.3.0.tar.gz
(8.1 kB
view details)
Built Distribution
crowdpy-1.3.0-py3-none-any.whl
(11.5 kB
view details)
File details
Details for the file crowdpy-1.3.0.tar.gz
.
File metadata
- Download URL: crowdpy-1.3.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38ef3f8c567d3eb24111a4b72a62e05c62f4c2f52f6427d9c9e41dc88a1b8a7d |
|
MD5 | 6d53bbd1628d71d942be70f1be3e3519 |
|
BLAKE2b-256 | 13827464ce9141881a804c6230708614afbc59f6a1cdf95039efb7e275a928d3 |
File details
Details for the file crowdpy-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: crowdpy-1.3.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd85cf4fd677993f0c45be5b315c76cf8fa7f4c9197ededabd60830b60057f94 |
|
MD5 | 04d738f28185105c4d53492271c47d79 |
|
BLAKE2b-256 | f284b5e2aeae9378c9573f61b89fd58d37a8433997b4816d4f60f206ae38eb37 |