# iswbm/magic-python

Python 黑魔法手册

Repository: https://github.com/iswbm/magic-python
Canonical: https://ross.abutalabs.com/products/magic-python
Homepage: http://magic.iswbm.com/
Language: Python
License Family: other
Last push: 2026-01-26T14:12:01+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 64, release rhythm 8, longevity 100
- inputs: {"age_days": 2306, "days_push": 219, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3391, forks 470 (observed 2026-08-28T04:07:59.090799+00:00)

## What it is
An open-source Chinese-language ebook ('Python Black Magic Handbook') covering obscure Python knowledge, shell tricks, advanced idioms, and development tips, built with Sphinx and published online and as PDF. It is a learning resource rather than a software tool.

## Use cases
- learn obscure python tricks
- advanced python idioms and metaprogramming explained
- python shell command-line tips
- understand descriptors and metaclasses
- python development tips and best practices
- download a python tricks ebook as pdf

## When to choose
- you already know Python basics and want lesser-known language features
- you want free, regularly updated advanced Python reading material
- you prefer reading in Chinese

## When to avoid
- you are a complete beginner looking for a Python fundamentals tutorial
- you need a software library or tool rather than a book
- you need English-language documentation

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation, developer-tools
- domain: programming-languages, tutorials, education, developer-tools
- platform: cross-platform
- tags: ebook, python-tricks, advanced-python, sphinx, chinese-language, web-server

## Member repositories
- iswbm/magic-python (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:59.090799+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:39:00.980341+00:00, confidence not recorded.
  - readme: https://github.com/iswbm/magic-python (fetched 2026-08-28T04:07:59.090799+00:00, sha 17749322ac62)
  - homepage: http://magic.iswbm.com/ (fetched 2026-08-29T09:33:24.637186+00:00, sha 8b3dbc16960c)
  - site_page: https://magic.iswbm.com/aboutme.html (fetched 2026-08-29T09:33:24.640672+00:00, sha 473f7234ac4a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
