DanLing
Introduction
DanLing (丹灵) is a high-level library to help with running neural networks flexibly and transparently.
DanLing is meant to be a scaffold for experienced researchers and engineers who know how to define a training loop, but are bored of writing the same boilerplate code, such as DDP, logging, checkpointing, etc., over and over again.
Therefore, DanLing does not feature complex Runner designs with many pre-defined methods and complicated hooks. Instead, the Runner of DanLing just initialise the essential parts for you, and you can do whatever you want, however you want.
Although many attributes and properties are pre-defined and are expected to be used in DanLing, you have full control over your code.
DanLing also provides some utilities, such as [NestedTensor][danling.NestedTensor], [LRScheduler][danling.optim.LRScheduler], [catch][danling.utils.catch], etc.
Installation
Install the most recent stable version on pypi:
pip install danling
Install the latest version from source:
pip install git+https://github.com/ZhiyuanChen/DanLing
It works the way it should have worked.
License
DanLing is multi-licensed under the following licenses:
- The Unlicense
- GNU Affero General Public License v3.0 or later
- GNU General Public License v2.0 or later
- BSD 4-Clause "Original" or "Old" License
- MIT License
- Apache License 2.0
You can choose any (one or more) of these licenses if you use this work.
SPDX-License-Identifier: Unlicense OR AGPL-3.0-or-later OR GPL-2.0-or-later OR BSD-4-Clause OR MIT OR Apache-2.0
Release files for danling 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| danling-0.4.5.tar.gz | 7.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| danling-0.4.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 MB
Release files / danling-0.4.5.tar.gz
| Download URL | danling-0.4.5.tar.gz |
|---|---|
| Size | 7.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
525dcc92d32542e99e88b90fbc8a221c087e57494e6b3cfb92856fb4764ee413
|
|
BLAKE2b-256 checksum How to use checksums |
90346cb9bc2985c3e18664e1784b7d5222db7a7844039ec93da23e9bbe3892d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 26, 2026.
Transparency logRelease files / danling-0.4.5-py3-none-any.whl
| Download URL | danling-0.4.5-py3-none-any.whl |
|---|---|
| Size | 556.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fdb1a48847f8f1040b79cc8dad73c62abc8a410c77200c2bf7850f73594c656
|
|
BLAKE2b-256 checksum How to use checksums |
75946de5e81565d905ad017b03fbd0909c0980e252fa1fe34f644af21a4f2f3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 26, 2026.
Transparency log