Skip to main content

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

Metadata

Release files for danling 0.4.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for danling 0.4.11
File Size Uploaded Provenance Actions
danling-0.4.11.tar.gz 7.3 MB With provenance Details for danling-0.4.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for danling 0.4.11
File Interpreter ABI Platform Actions
danling-0.4.11-py3-none-any.whl Python 3 none any Details for danling-0.4.11-py3-none-any.whl

Total release size: 8.0 MB

Release files / danling-0.4.11.tar.gz

Download URL danling-0.4.11.tar.gz
Size 7.3 MB
Tags Source
SHA-256 checksum
How to use checksums
6cc784f43aa471ad2a61d82338f21fcb3058778a649db95bd10b3d183904031b
BLAKE2b-256 checksum
How to use checksums
26eae3e10e4b3e11c5b87e369f22059bf85dc961e5253d8a00f2d8d685fd0ab3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Release files / danling-0.4.11-py3-none-any.whl

Download URL danling-0.4.11-py3-none-any.whl
Size 702.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e140e930cb7715428bbd2d012dd001014d4e8d2ae914aae0956cf6457422127
BLAKE2b-256 checksum
How to use checksums
9bf03e2074942de0d66fce6846913eab028e99b93657b52ed835929ab62ec2f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Security for danling 0.4.11

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for danling-0.4.11.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 Nov 19, 2026.

Transparency log

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.11 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page