Skip to main content

number-patterns

Under construction! Not ready for use yet. Currently experimenting and planning. Developed by Dilith Achalan (c) 2022

Summary

This project is created to identify the number patterns on a given number sequence which will get the difference in sequence and general term or general ratio.

How to import the module

You can import numpatt module which is inside numpatterns project folder. You may use below code snippet to import convert_str_float funtion.

from numpatterns.numpatt import convert_str_float

Below functions are available to use. Funtions

  • convert_str_float
  • check_list
  • get_common_term
  • get_common_ratio
  • common_difference
  • multi_difference
  • classify_pattern

Examples of how to use

convert_str_float - funtion

This funtion take two parameters string number list, seperator and return the output as a list with floating values.

# get user input to enter a number sequence
num_list = input("Enter the number sequence: ")
nth = int(input("Enter the nth in sequence: "))

# calling the 'convert_str_float' function to get a list with string values to float
n_list = convert_str_float(num_list, sep=",")
print(n_list)

check_list - funtion

This funtion will take string number list and check if the list has at least two items to operate sequence

n_list = [2, 4, 6, 8]

# calling the 'check_list' function to validate if list has at least two items
if check_list(n_list):
    print("This list has at least two items ")

Metadata

Release files for numpatt-sequence 0.0.11

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

Source distribution (sdist)

Source distribution for numpatt-sequence 0.0.11
File Size Uploaded Provenance
numpatt-sequence-0.0.11.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for numpatt-sequence 0.0.11
File Interpreter ABI Platform
numpatt_sequence-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / numpatt-sequence-0.0.11.tar.gz

Download URL numpatt-sequence-0.0.11.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
728c9df987a52d73ce86da4d98e50f9d7e897a4a385757961ef20144e22d94dd
BLAKE2b-256 checksum
How to use checksums
68fdb5ff892fd098934d73cd2ab4a441461aaed10d3d0b44c5868ed22e8f7060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.13

Release files / numpatt_sequence-0.0.11-py3-none-any.whl

Download URL numpatt_sequence-0.0.11-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33d0d1c0e51a39bba60db37ecaea7c37994743cf03048ed8442ee8b31b31b945
BLAKE2b-256 checksum
How to use checksums
06353bb9b2403a495a6ad63d1bc4193daf812ac653e5c2e923c93003eceb36c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.13

Security for numpatt-sequence 0.0.11

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