Skip to main content

linkedpy

linkedpy is a simple linked list implementation in Python, providing a custom List class with various methods for managing linked list operations.

Features

  • Basic Operations:

    • append(value): Add a value to the end of the list.
    • insert(index, value): Insert a value before the specified index.
    • remove(value): Remove the first occurrence of a value.
    • pop(index=None): Remove and return an item at a specified index (default is the last item).
    • clear(): Remove all items from the list.
  • Access and Indexing:

    • __getitem__(index): Get the item at a specific index.
    • __setitem__(index, value): Set the item at a specific index.
    • __delitem__(index): Delete the item at a specific index.
  • Information and Iteration:

    • count(): Return the number of items in the list.
    • __len__(): Return the number of items in the list.
    • to_list(): Return the list as a normal Python list.
    • __repr__(): Return a string representation of the list.
    • __iter__(): Iterate over values in the list.
  • Concatenation:

    • __add__(other): Concatenate two lists using the + operator.
    • __iadd__(other): In-place concatenation using the += operator.
  • Statistical Operations:

    • min(): Return the minimum value in the list.
    • max(): Return the maximum value in the list.
  • Sorting:

    • sort(): Sort The list
    • sorted(): Return Sorted copy List

Usage

from linkedpy import List

# Create a new list
my_list = List(1, 2, 3)

# Append values
my_list.append(4)
my_list.append(5)

# Access elements
print(my_list[2])  # Output: 3

# Remove element
my_list.remove(2)

# Iterate over the list
for item in my_list:
    print(item)

# Concatenate lists
new_list = my_list + List(6, 7, 8)

# In-place concatenation
my_list += List(9, 10)

# Sorting

my_list.sort()

# Optional reverse argument
my_list.sorted(reverse=True)

Metadata

Release files for linkedpy 0.1.0

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

Source distribution (sdist)

Source distribution for linkedpy 0.1.0
File Size Uploaded Provenance
linkedpy-0.1.0.tar.gz 3.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.9 kB

Release files / linkedpy-0.1.0.tar.gz

Download URL linkedpy-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0301b958bb735637998d6f6cc37532f9ce27c70d8810ab5dc5beac17e07f2643
BLAKE2b-256 checksum
How to use checksums
71e437be06131385901a3932eeec4ed945ef9b62e61f017cc41bedae47ebaee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / linkedpy-0.1.0-py3-none-any.whl

Download URL linkedpy-0.1.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f41ef4d19f5d78bff034b62aa45b85c8533b31610b0c94437aeed372f07ec2aa
BLAKE2b-256 checksum
How to use checksums
364f0ea987df7e7214fa7d561a44c233bd4f7e5c7643d8b8c0bfda821bcfd40e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Security for linkedpy 0.1.0

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