Skip to main content

autostr

Небольшой модуль, который добавляет класс AutostrMixin
Вы можете наследоваться от данного класса и тогда вам не придётся писать __str__

Пример:

from autostr import AutostrMixin

class A(AutostrMixin):
	b = 0
	def __init__(self):
		self.a = 1


t = A()
print(t)

Вывод:

Экземпляр класса: A

Атрибуты класса:
·b: 0 

Атрибуты экземпляра:
·a: 1 

Metadata

Release files for autostr 2.0

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

Source distribution (sdist)

Source distribution for autostr 2.0
File Size Uploaded
autostr-2.0.tar.gz 2.6 kB Details

Release files / autostr-2.0.tar.gz

Download URL autostr-2.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ef1d5f190fba6198c17c95ed5fb3f25cef2fc20b441b05c2a5ab22925059b5aa
BLAKE2b-256 checksum
How to use checksums
9bfcacfab01de33790c56a4d5fda8293800fff131acb8d22ee8587eb2886c74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

2.0 This release

1 release file

1.9

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4.1

1 release file

1.4

1 release file

1.3

1 release file

1.1

1 release file

1.0

1 release file

0.2

1 release file

0.1

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