Skip to main content

Create static classes in python.

Project description

Overview

Create static classes in python.

Installation

To install staticclasses, you can use pip. Open your terminal and run:

pip install staticclasses

Implementation

class staticmeta(type):
    def __call__(cls, *args, **kwargs):
        e = "Cannot instantiate static class %r!"
        e %= cls.__name__
        raise TypeError(e)


class staticclass(metaclass=staticmeta): ...

License

This project is licensed under the MIT License.

Credits

Thank you for using staticclasses!

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

staticclasses-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

staticclasses-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file staticclasses-1.0.0.tar.gz.

File metadata

  • Download URL: staticclasses-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for staticclasses-1.0.0.tar.gz
Algorithm Hash digest
SHA256 13b1a29a471fb1352dd7a80ad9856e2fe4b9151fb193664224a578863a755925
MD5 4c5a18531a9ea29205dde80c7d782d90
BLAKE2b-256 6dbedb3b937001ca97716fb24ef853a01b05d6ac55790cf92024ef049854fb5b

See more details on using hashes here.

File details

Details for the file staticclasses-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for staticclasses-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e178e7a6a477fc52736464bfde36a2d5d725ba61b6527ad408807fbe7ec2b7f6
MD5 db4c1ce0e2b756636677bca33548f132
BLAKE2b-256 510107e79cc1f6c1954c35725010e2c92ce05a8ab325870e86ac0b79c384e408

See more details on using hashes here.

Supported by

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