Records transactions against a ledger, denominated in units of value.
Project description
openedx-ledger
Purpose
Records transactions against a ledger, denominated in units of value.
TODO: The README.rst file should start with a brief description of the repository and its purpose. It should be described in the context of other repositories under the openedx organization. It should make clear where this fits in to the overall Open edX codebase and should be oriented towards people who are new to the Open edX project.
Getting Started
Developing
One Time Setup
# Clone the repository into your devstack src/ directory
cd $DEVSTACK_WORKSPACE/src
git clone git@github.com:openedx/openedx-ledger.git
Every time you develop something in this repo
# shell into a running enterprise-subsidy container
make app-shell
# inside the container shell now
# TODO find a better permanent place to put this git config call
git config --global --add safe.directory /edx/src/openedx-ledger
pip install -e /edx/src/openedx-ledger
pip freeze | grep ledger # should give output pointing at a file and git hash
# Now, to run tests and validation against openedx-ledger:
pushd /edx/src/openedx-ledger
source venv/bin/activate
make validate
Deploying
TODO: How can a new user go about deploying this component? Is it just a few commands? Is there a larger how-to that should be linked here?
PLACEHOLDER: For details on how to deploy this component, see the deployment how-to
Getting Help
Documentation
PLACEHOLDER: Start by going through the documentation. If you need more help see below.
(TODO: Set up documentation)
More Help
If you’re having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.
Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack workspace.
For anything non-trivial, the best path is to open an issue in this repository with as many details about the issue you are facing as you can provide.
https://github.com/openedx/openedx-ledger/issues
For more information about these options, see the Getting Help page.
License
The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.
Please see LICENSE.txt for details.
Contributing
Contributions are very welcome. Please read How To Contribute for details.
This project is currently accepting all types of contributions, bug fixes, security fixes, maintenance work, or new features. However, please make sure to have a discussion about your new feature idea with the maintainers prior to beginning development to maximize the chances of your change being accepted. You can start a conversation by creating a new issue on this repo summarizing your idea.
The Open edX Code of Conduct
All community members are expected to follow the Open edX Code of Conduct.
People
The assigned maintainers for this component and other project details may be found in Backstage. Backstage pulls this data from the catalog-info.yaml file in this repo.
Reporting Security Issues
Please do not report security issues in public. Please email security@tcril.org.
Change Log
Unreleased
Nothing
[0.2.2]
Add many help_text fields to model fields.
Add some useful composite table indices.
Add a “failed” transaction state.
[0.2.0]
Some small developer QOL stuff.
Better local development instructions in README.
Remove docs from quality checks and ci.yml.
Reasonable first pass at allowing for weak/strong admin editing ability depending on environment settings.
Simple, first attempt at an idempotency key utility methods for ledgers and transactions that optionally take a subsidy and initial deposit, resp.
Allow blank idp keys on the Ledger model, and set to a sane default if not provided on save().
Remove JPY as an allowed unit.
api.create_ledger() now seeds the ledger with an optional initial deposit.
Check if we’re already inside a transaction when setting durable=True in create_transaction().
[0.1.1] - 2023-01-05
Added
Package renamed from edx-ledger to openedx-ledger
[0.1.0] - 2023-01-04
Added
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file openedx-ledger-0.3.1.tar.gz
.
File metadata
- Download URL: openedx-ledger-0.3.1.tar.gz
- Upload date:
- Size: 35.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e1c3b3ddc8de5166bd9a240fe64333542eff44b16a9c0c7452a475a20328f5 |
|
MD5 | e1308717d43248d5ee4c62ac281f812a |
|
BLAKE2b-256 | e73e02331acaa63d891c1cc1792505b15789e6344cfc08d60fc1261e601b5980 |
File details
Details for the file openedx_ledger-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: openedx_ledger-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 425ad08f9c80f3defde4c711f2c6f6bf0e469247e1601be44f70d731853e2c2d |
|
MD5 | 074303ba2e24b351bfc8cb1c467e777c |
|
BLAKE2b-256 | 01d28c734065aefd2c0cfca6baa2ebe1ba29a0687e3afc258904aa19dc90b513 |