Skip to main content

No project description provided

Project description

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 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autostr-1.9.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file autostr-1.9.tar.gz.

File metadata

  • Download URL: autostr-1.9.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for autostr-1.9.tar.gz
Algorithm Hash digest
SHA256 457a77209ae8860fbdc9b984ae57688dfe0882c27c28ca5c0960b3ea80633491
MD5 8594178f3d2ccbad5b8090783d1fe435
BLAKE2b-256 fe68c8e443fbf75023168eb1a671df0ffb8be9d60031792cada9b2cd7503d924

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page