Skip to main content
## Also
Ever had lots of methods that do the same thing?!
You want to set them to the same thing but dont want to do something lame like
```python
def method(self):
pass

othermethod = method
```

Rather you want to do it with style like

```python
@also('othermethod')
def method(self):
pass
```

Then do I have a solution for you!

## Installation
```
pip install also
```

## Usage
```python
from also import also, AlsoMetaClass

class Foo:
__metaclass__ = AlsoMetaClass

@also('getThing')
@also('get_thing')
def getthing(self):
return 'go bears'

foo = Foo()
assert (foo.getthing() == foo.get_thing() ==
foo.getThing() == 'go bears')
```

Metadata

Release files for also 0.0.2

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

Source distribution (sdist)

Source distribution for also 0.0.2
File Size Uploaded Provenance Actions
also-0.0.2.tar.gz 1.3 kB Without provenance Details for also-0.0.2.tar.gz

Release files / also-0.0.2.tar.gz

Download URL also-0.0.2.tar.gz
Size 1.3 kB
Tags Source
SHA-256 checksum
How to use checksums
55893fd0bd491e1f2e8158818995906830ec25bc1bbd6a4503d925dfb03c0d4a
BLAKE2b-256 checksum
How to use checksums
0ca623afaa70a830ef92e35b19dd21cc1098b0cdd8157ea7f3d7c926df260393
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for also 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

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