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

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
selfish-0.3.1.tar.gz 4.5 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.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