Skip to main content

A collection of Python packages written by Walter J Hare.

Project description

Ranthon Guide

By: Walter J Hare

Ranthon is a collection of Python packages written by Walter J Hare. It requires the FileLog project, which is automatically installed.

InfSeq

InfSeq is a Python module that generates numbers in infinite sequences. So far it only includes two modules CalFib which generates numbers in the Fibonacci Sequence for a set number of rounds, and CalFibLon which calculates the Fibonacci Sequence forever.

CalFib

The first attribute of CalFib is the amount of times you want to run the code, the second attribute is if you want to log the numbers or not (Write True if you want to log it and False if you don't) this feature uses the FileLog project.

The Code

 

def calfib(loop, log):
n = 1
x = 0
p = x
if log == True:
    for i in range(loop):
        x = n
        n = (n + p)
        Writer('current', False) >> n
        p = x
        Writer('previos', False) >> p
else:
    for i in range(loop):
        x = n
        n = (n + p)
        p = x
return n
CalFibLon

There is only one attribute to CalFibLon it is the log attribute which I mentioned on the CalFib section of the documentation, but I will explain it again here. The attribute checks if you want to log the numbers or not (Write True if you want to log it and False if you don't) this feature uses the FileLog project.

The Code

 

def calfiblon(log):
n = 1
x = 0
p = x
if log == True:
    while True:
        x = n
        n = (n + p)
        Writer('current', False) >> n
        p = x
        Writer('previos', False) >> p
if log == False:
    while True:
        x = n
        n = (n + p)
        p = x

Conclusion

Thanks for reading my documentation, and I hope you learned some stuff about how to use my python project Ranthon.


Patch Notes

1.0.6

- Added the patch notes section to the README.md file.
- Fixed spelling and grammar issues on the README.md file.s

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

Ranthon-1.0.6.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file Ranthon-1.0.6.tar.gz.

File metadata

  • Download URL: Ranthon-1.0.6.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/62.2.0 requests-toolbelt/0.8.0 tqdm/4.64.0 CPython/3.7.3

File hashes

Hashes for Ranthon-1.0.6.tar.gz
Algorithm Hash digest
SHA256 55968bafa36078a4eb564483207a874463a0e657bf9af9ea40f9c248bcb05d35
MD5 f7ada6d716c37455d5cf2a61153806d2
BLAKE2b-256 1d2fe7f90bbdf59026c451eabb76e303787499d58ff443ded930612662cf9f1d

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