Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
1 of 1 committers (100.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.0%) to scientific vocabulary
Keywords
Repository
Copy even immutable objects as much as possible
Basic Info
Statistics
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 4
- Releases: 7
Topics
Metadata Files
README.md
morecopy
Copy even immutable objects as much as possible
Overview
morecopy is a Python package that enables copy of immutable objects so that a copied object is equivalent but not identical to the original:
```python from morecopy import copy
original = 1234567890 copied = copy(original)
original == copied # -> True original is copied # -> False ```
Note In general, there is no need to copy immutable objects, so this package may not be necessary in most cases. Also, some objects may not be copied even with this package: In CPython, for example, integers from -5 to 256 are always uncopied for optimization.
Installation
shell
$ pip install morecopy
Supported immutable types
The following types are supported.
For mutable types (e.g. list) or unsupported immutable types (e.g. bool, NoneType), morecopy.copy and morecopy.deepcopy are equivalent to copy.copy and copy.deepcopy, respectively.
Type | morecopy.copy | morecopy.deepcopy
--- | --- | ---
int | yes | n/a
float | yes | n/a
complex | yes | n/a
str | yes | n/a
bytes | yes | n/a
tuple | yes | n/a
range | yes | n/a
slice | yes | n/a
frozenset | yes | n/a
FunctionType | yes | n/a
LambdaType | yes | n/a
Custom immutable copier
Users can add a custom copy function (copier) for a type.
For example, the following code defines copy of integer by creating a copy function and registering it by the copier_for decorator.
```python from morecopy import copier_for
@copierfor(int) def copyint(integer: int) -> int: return eval(repr(integer)) ```
Owner
- Name: Akio Taniguchi
- Login: astropenguin
- Kind: user
- Location: Nagoya, Japan
- Company: Nagoya University
- Website: https://astropengu.in
- Twitter: astropengu_in
- Repositories: 76
- Profile: https://github.com/astropenguin
Project assistant professor (LMT-FINER)
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "morecopy"
abstract: "Copy even immutable objects as much as possible"
version: 0.4.0
date-released: 2023-10-19
license: "MIT"
doi: "10.5281/zenodo.5594444"
url: "https://github.com/astropenguin/morecopy"
authors:
- given-names: "Akio"
family-names: "Taniguchi"
affiliation: "Nagoya University"
orcid: "https://orcid.org/0000-0002-9695-6183"
GitHub Events
Total
Last Year
Committers
Last synced: almost 3 years ago
All Time
- Total Commits: 42
- Total Committers: 1
- Avg Commits per committer: 42.0
- Development Distribution Score (DDS): 0.0
Top Committers
| Name | Commits | |
|---|---|---|
| Akio Taniguchi | t****i@a****p | 42 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 21
- Total pull requests: 19
- Average time to close issues: 28 minutes
- Average time to close pull requests: 11 minutes
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 18
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- astropenguin (21)
Pull Request Authors
- astropenguin (19)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 2,531 last-month
- Total dependent packages: 3
- Total dependent repositories: 8
- Total versions: 8
- Total maintainers: 1
pypi.org: morecopy
Copy even immutable objects as much as possible
- Homepage: https://github.com/astropenguin/morecopy/
- Documentation: https://morecopy.readthedocs.io/
- License: MIT
-
Latest release: 0.4.0
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- appnope 0.1.2 develop
- atomicwrites 1.4.0 develop
- attrs 21.2.0 develop
- backcall 0.2.0 develop
- black 21.12b0 develop
- click 8.0.3 develop
- colorama 0.4.4 develop
- decorator 5.1.0 develop
- importlib-metadata 4.8.2 develop
- iniconfig 1.1.1 develop
- ipython 7.30.1 develop
- jedi 0.18.1 develop
- matplotlib-inline 0.1.3 develop
- mypy-extensions 0.4.3 develop
- packaging 21.3 develop
- parso 0.8.3 develop
- pathspec 0.9.0 develop
- pexpect 4.8.0 develop
- pickleshare 0.7.5 develop
- platformdirs 2.4.0 develop
- pluggy 1.0.0 develop
- prompt-toolkit 3.0.24 develop
- ptyprocess 0.7.0 develop
- py 1.11.0 develop
- pygments 2.10.0 develop
- pyparsing 3.0.6 develop
- pytest 6.2.5 develop
- toml 0.10.2 develop
- tomli 1.2.3 develop
- traitlets 5.1.1 develop
- typed-ast 1.5.1 develop
- typing-extensions 4.0.1 develop
- wcwidth 0.2.5 develop
- zipp 3.6.0 develop
- black ^21.12b develop
- ipython ^7.30 develop
- pytest ^6.2 develop
- python >=3.7, <3.11
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite