Skip to main content

Package with random functions, some are useful, some aren't so much. They are however used often, maintained, and good for learning.

Project description

hello! thank you for choosing the pnav package. This outlines how to use the pnav package and what can be done with it. There are many use cases and it is constantly being updated. For more information on a certain function run pnav.help.functionname or pnav.help.help(functionname)

    class:
            function

    random:
            messyCheck
            inputOwn
            checkDate
            isPalindrome
            info
    timer:
            base
            candy
    stockScraper:
            select

help. this contains help on what each specific function and class does without having to read the documentation. It provides what is similar to a quick-start guide. it is very useful for a refresher on a certain function and will be updated in the future.

    pnav.help.help()
    this will print a general guide and overview.

    pnav.help.help('random')

or pnav.help.random() both of these will do the same thing and each will give you more detailed information about the class or function.

    pnav.help.info()

this will display more information about what this function does. as of right now it does not show how to use it but may in the future.

random. this class contains misc projects, functions and items that I did not think needed a entire class dedicated to them.

    pnav.random.messyCheck()

this takes a array or string usually read from a input file and iterates it and checks for the alphabet.

    pnav.random.inputOwn()

this lets you input your own items to search for when running the above function.

    pnav.random.isPalindrome()

this takes a string and returns a boolean on its status as a palindrome.

    pnav.random.info()

this returns a dictionary of values including time, date, ipv4, hostname, date in year/month/day format, and all data returned when you run ipconfig/all in a command prompt.

    pnav.random.info(valuesOnly = True)

this returns the same thing but in a value only format which is harder for humans to read, but much easier to manipulate and use in other functions and projects.

timer. uses a gui to get user data.

    pnav.timer.candy()

this creates a gui that takes 3 inputs, the first being the amount of time, the second the amount of candy you want to make last that time. there is also a checkbox that when checked will not generate a windows notification. this is a great function to run to get a deeper understanding of how to use the following, much more customizable version.

    pnav.timer.base()

this is the base for a extremely customizable timer gui. the optional parameters are:

            title: string,
                    title of the timer.
            label1text: string,
                    label for the first input box will be.
            row1: boolean,
                    toggle the existence of the first row.
            label2text: string,
                    label for the second input box will be.
            row2: boolean,
                    toggle the existence of the second row.
            checkboxtext: string,
                    text for the checkbox.
            checkbox: boolean,
                    toggle the existence of the checkbox.
            enterbuttontext: string,
                    text for enter button
            exitbuttontext: string,
                    text for enter button
            returnOnly: boolean,
                    when left to true it will return all values of each input field. if set to false it will take the data and attempt to do the same thing as the candy timer. there are few scenarios when I would change it to false.

stockScraper. uses beautifulSoup4 to get html data from a webpage and then returns information on a certain stock. this is very basic and uses bs4 to scrape the data from Robinhood for market information, it was one of my early projects. this will soon likely be archived and depreciated, at this time I do not see a need to replace it with something better, but neither a need to keep it.

    pnav.stockScraper.select()

this is the only function that needs called, it will take user input from the console and display related stock information.

check out my github at https://github.com/ZNav

check out this package at https://pypi.org/project/pnav/

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

pnav-0.2.4.tar.gz (13.3 kB view details)

Uploaded Source

File details

Details for the file pnav-0.2.4.tar.gz.

File metadata

  • Download URL: pnav-0.2.4.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for pnav-0.2.4.tar.gz
Algorithm Hash digest
SHA256 0a1581a953ad39d0c3b03ec77d9efd9402a2b3cc5b7bff6e30efef62e4392be0
MD5 c1bfbb3fc7761e7406477aa21e1b1f2f
BLAKE2b-256 7856401c4bd07e975972440c2adb84cfa158470ef4145fafc5c158607ebd1db7

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