Skip to main content

selfish

Making 'self' implicit, because even Java did a better job at this.

Install

pip install selfish

Usage

@selfish
class Foo():
    def __init__(val): self.val = val

    def val(): return self.val

    @classmethod
    def klass(): return self


Foo(1).val()
> 1

Foo.klass()
> Foo

installs

Metadata

Release files for selfish 0.3.1

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

Source distribution (sdist)

Source distribution for selfish 0.3.1
File Size Uploaded Provenance Actions
selfish-0.3.1.tar.gz 4.5 kB Without provenance Details for selfish-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for selfish 0.3.1
File Interpreter ABI Platform Actions
selfish-0.3.1-py3-none-any.whl Python 3 none any Details for selfish-0.3.1-py3-none-any.whl

Total release size: 8.4 kB

Release files / selfish-0.3.1.tar.gz

Download URL selfish-0.3.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
59adc6eb5ca108b0833cc5bc4b59edcba9c33e8313c63737756d7f16d937ce0d
BLAKE2b-256 checksum
How to use checksums
40a26b6d20f13dc73b8f2c039e1687194e8c30f6263e73da3ad57a2f48f6e0c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / selfish-0.3.1-py3-none-any.whl

Download URL selfish-0.3.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9d594991ce27018109ae075882c6af568463d0d9727cff51a6ef98beed8d418
BLAKE2b-256 checksum
How to use checksums
afc9646dfb53cca4d3c142a9471ac7dd2602cc9c4a22739ec7b4327b11e7ef5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Security for selfish 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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