Skip to main content

indentation

Text indentation functions.

Usage

Indenting to a specific level:

>>> import indentation
>>> indentation.set( "hello", 1 )
'    hello'

>>> indentation.set( "    hello", 0 )
'hello'

Indenting to a specific level (and keeping relative lines in place):

>>> import indentation
>>> print( indentation.set("hello\n    world", 1) )
    hello
        world

Release files for indentation 1.0.2

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

Source distribution (sdist)

Source distribution for indentation 1.0.2
File Size Uploaded
indentation-1.0.2.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for indentation 1.0.2
File Interpreter ABI Platform
indentation-1.0.2-py2-none-any.whl Python 2 none any Details

Total release size: 4.1 kB

Release files / indentation-1.0.2.tar.gz

Download URL indentation-1.0.2.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bf055062a0ea621142a8a0314bd8467168fba48d4d9652e3c99cbeaa954c3962
BLAKE2b-256 checksum
How to use checksums
f6bf4df69a41d597170f042137622562e39ce3cf8fa496b4b053aa21c628e6b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / indentation-1.0.2-py2-none-any.whl

Download URL indentation-1.0.2-py2-none-any.whl
Size 2.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
3581e273f65771583ef11cbdf95ed1ef012c09043f0f7eabddd7c5f8008f5ddf
BLAKE2b-256 checksum
How to use checksums
13f63f0537ad9f202de59f2898a759b3fc93cb3a3bfa697c84c87d416e5c70d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

1 release file

1.0.0

1 release file

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