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

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.8
File Size Uploaded Provenance Actions
danling-0.4.8.tar.gz 7.1 MB With provenance Details for danling-0.4.8.tar.gz

Built distribution (wheel)

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

Total release size: 7.7 MB

Release files / danling-0.4.8.tar.gz

Download URL danling-0.4.8.tar.gz
Size 7.1 MB
Tags Source
SHA-256 checksum
How to use checksums
e46cd370b53f377de9f215d6aceec870e86e10b480d28f667680b902e5cb07a2
BLAKE2b-256 checksum
How to use checksums
3b168e38daf31e10bda8cd14b41319e63ac9f7c4937bbdc7bc70526fbaec3767
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 Oct 26, 2026.

Transparency log

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

Download URL danling-0.4.8-py3-none-any.whl
Size 595.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cffa3aa2dd7ec11653a0737f44f12e3076809cda7d26bc67808146114e9f41ac
BLAKE2b-256 checksum
How to use checksums
262365e16549c14aa54c294e16eb8d4dc991b8534fe3bece1e9a04ee806e4e85
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 Oct 26, 2026.

Transparency log

Security for danling 0.4.8

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.8.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 Oct 26, 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.8 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