Skip to main content

A simple test library

Project description

jfr_1

This is a simple Python library for testing PyPI publishing.

Installation

pip install jfr_1


# jfr_1 Library

jfr_1 is a Python library for algorithms.

## How to Add a New Algorithm

1. Implement your algorithm as a Python function.
2. Use the `register_algorithm` function to add it to the library.
3. Add a description of what your algorithm does.
4. If you'd like to share it, submit a pull request.

## Example

```python
from jfr_1 import register_algorithm

def bubble_sort(arr):
    """Sort a list using bubble sort."""
    for i in range(len(arr)):
        for j in range(0, len(arr)-i-1):
            if arr[j] > arr[j+1]:
                arr[j], arr[j+1] = arr[j+1], arr[j]
    return arr

# Register the algorithm
register_algorithm('bubble_sort', bubble_sort, 'Bubble Sort: An algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jfr_1-0.2.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jfr_1-0.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file jfr_1-0.2.0.tar.gz.

File metadata

  • Download URL: jfr_1-0.2.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for jfr_1-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dc70550731e95074c82f52cd8ed6522539bb08f4b69eb4ba325de6eed11436b6
MD5 0bac4853a3dc673e1280aff217c2052f
BLAKE2b-256 38bf3c27960aa29eb54ae5f215c1043af725167f7b7db13c7627992fc5a803e2

See more details on using hashes here.

File details

Details for the file jfr_1-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jfr_1-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for jfr_1-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c999817f0beba4a7ffc99b8d16f0b1b9e057e065cf59f854c7fbe03fe3ad62bb
MD5 f809c1d92cddb59c2412c21b9b308b9e
BLAKE2b-256 6035ac379345fbfc4d61ed1ce0ed341f1e4c89139e8494fb62fa18988db18795

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page