Saravanan666/pypi-org huggingface dataset:
Package: kabbes-aws-credentials
aws_credentialsSystem for quickly importing AWS credentials into Python scriptsDocumentationPyPIInstallationpip install kabbes_aws_credentialsUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.importaws_credentialsrole='myawsrole'print(aws_credentials.Creds[role].dict)>>> { 'aws_access_key_id': 'XXXXXX', 'aws_secret_access_key': 'XXXXXX' }Updating AWS Credentials1. Copy credentials in this format to your clipboard[aws_role]aws_access_key_id=XXXXXXaws_secret_access_key=XXXXXX2. Run one of the followingpython -m aws_credentialsaws_credentials.update()3. Verify the aws_credentials/aws_creds.txt file is updatedAuthorJames Kabbes
Package: kabbes-client
clientpecking order, lowest to highestRoot -> _config_dictRoot -> _config_json_PathRoot -> _config_cache_PathRoot -> cwd_configRoot -> sys_kwargsRoot -> user.config.pathPackage -> _config_dictPackage -> _DirPackage -> _config_json_PathPackage -> package.config.cache.PathPackage -> Root.cfg_cwd[ 'package.name' ]Package -> Root.cfg_user[ 'package.name' ]Package -> overwrite dictPackage -> Root.cfg_sys[ 'package.name' ]
Package: kabbes-cryptography
GitHub PagesPyPIcryptographyEasy implementation of professional Python cryptography packagesInstallationpip install kabbes_cryptographyUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.importkabbes_cryptographyaskcrypimportdir_opsasdoRSA# Initializing RSA tokensRSA_inst=kcryp.RSA()RSA_inst.get_new_Keys(set=True)RSA_inst.export_public_Key(do.Path('publickey'))RSA_inst.export_private_Key(do.Path('privatekey'))#Encryption with RSARSA_inst.encrypt(bytes('test',encoding='utf-8'))print(RSA_inst.encrypted)>>> b'nb\\\x02|:M\x82\x8a\xe1\xc7U\xfd\x1e\xc5O\xcc\x7f\x06\xc2~\xaf\x85"\ -- ETC -- '#Decryption with RSAdec_message=RSA_inst.decrypt()print(dec_message.decode('utf-8'))>>> 'test'AES# Initializing AESAES_inst=kcryp.AES()AES_inst.prep_for_encrypt()AES_inst.encrypt(bytes('test',encoding='utf-8'))print(AES_inst.encrypted)>>> b'\xd1\xf8\x0b='dec_message=AES_inst.decrypt()print(dec_message.decode('utf-8'))>>> 'test'Combined# Initializing CombinedCombined_inst=kcryp.Combined(Dir=do.Dir(do.get_cwd()).join_Dir(path='CombinedEncryption'))Combined_inst.RSA.import_private_Key(do.Path('privatekey'),set=True)Combined_inst.RSA.import_public_Key(do.Path('publickey'),set=True)Combined_inst.encrypt(bytes('test',encoding='utf-8'))print(Combined_inst.encrypted)>>> b'\xdeA\xe7\x1e'dec_message=Combined_inst.decrypt()print(dec_message.decode('utf-8 '))>>> 'test'AuthorJames Kabbes
Package: kabbes-database-connections
GitHub PagesPyPIdatabase_connectionsProvides database-agnostic connection toolsInstallationpip install kabbes_database_connectionsUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.importdatabase_connectionsasdbconnfromdatabase_connectionsimportsql_support_functionsasssfsqlite_conn=sff.get_DatabaseConnection(connection_module='sqlite',db_path='test.db')df=sqlite_conn.query('Select * from table_name')sqlite_conn.write(df,'new_table')AuthorJames Kabbes
Package: kabbes-dir-ops
GitHub PagesPyPIdir_opsHandy directory operations along with homemade Dir/Path classesInstallationpip install kabbes_dir_opsUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.importdir_opsasdodo.join('C','Path','To','File')>>> 'C:/Path/To/File'do.path_to_dirs('C:/Path/To/File/asdf.txt')>>> [ 'C', 'Path', 'To', 'File', 'asdf.txt' ]Path_inst=do.Path('C:/Path/To/File/asdf.txt')print(Path_inst.exists())>>> TruePath_inst.print_atts()#from parent_class dependency>>>
---Path Class---
path:	C:/Path/To/File/asdf.txt
dirs:	['C:', 'Path', 'To', 'File', 'asdf.txt']
ending:	txt
size:	NoneAuthorJames Kabbes
Package: kabbes-imessage
GitHub PagesPyPIimessagePython tools for sending iMessage/SMS message from a MacInstallationpip install kabbes_imessageRunning mainpython -m kabbes_imessageUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.importkabbes_imessagemessage_obj=kabbes_imessage.Message('This is a test message')message_obj.PhoneNumbers.make_PhoneNumber('123-555-5555',medium='SMS')message_obj.PhoneNumbers.make_PhoneNumber('234-555-5555',medium='iMessage')message_obj.send()>>> Sending SMS message This is a test message to type:	PhoneNumber,	formatted:	+11235555555...
Sending iMessage message This is a test message to type:	PhoneNumber,	formatted:	+12345555555...AuthorJames Kabbes
Package: kabbes-ml-pipeline
GitHub PagesPyPIml_pipelineA centralized pattern for creating Machine Learning pipelinesInstallationpip install kabbes_ml_pipelineDescriptionContains a host of tools for standardizing the format of machine learning pipelines. Provides methods for querying databases, cleaning data, preprocessing data, model operations, exporting results, and more. Each machine learning project is a "child" of this template, with the ability to overwrite any of the default class attributes/methods.Code OverviewRead this high-level overview is necessary to understand how the package operates.Code HierarchyModels → Model → Input_Files → Input_File → Features → FeatureEach point in the hierarchy has certain methods and attributes associated with it. These methods give you the functionality for operating the pipeline.UsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.Initializing a Repo for ml_pipelineNavigate to a directory in command promptcd C:/Path/to/RepoCall the package's main scriptpython -m ml_pipelineNavigating the MenuRunpython main_XYZ.pyThis opens the Models options screen, along with the options for the "Models" class instance.To navigate one level down to a Model, select the option "Open Model"Select a Model from the list.Now in the Model options screen, press enter to navigate back up to Models.You can navigate from Models->Model->Input_Files->Input_File->Features->Feature and all the way back up.Option 1 shows "Open XXXXX" to navigate to the next level down in the tree.Press enter to exit back up to the previous level.Query new Raw Datapython main_XYZ.pyAt the Models options screen, select "Open Model".Select any Model from the list (this selection does not matter)In the Model options screen, select "Open Input Files".Select the first option.In the Input Files options screen, select "Open Input File"Select the Input File for which you would like to query new data.In the Input File options screen, select "Query from Source Database"Move Query Staged data to Raw DataFollow steps (1-7) from "Query new Raw Data" to get to the Input File of interest.In the Input File options screen, select "Move from Query Staging"Clean a Raw DatasetFollow steps (1-7) from "Query new Raw Data" to get to the Input File of interest.In the Input File options screen, select "Clean Raw Dataset"Running one Modelpython main_XYZ.pyAt the Models options screen, select the option for "Open Model"Select the Model you would like to runIn the Model options screen, select the option for "Run Pipeline"Running all Modelspython main_XYZ.pyAt the Models options screen, select the option for "Run Models"Author(s)James Kabbes
Package: kabbes-nanoid
nanoidSimple Python library for generating NanoIDsDocumentationPyPIInstallationpip install kabbes_nanoidUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.Importingimport nanoidGet a nanoid stringnanoid_string=nanoid.generate()print(nanoid_string)Generate a Nanoid objectObj=nanoid.Nanoid()print(Obj.nanoid)print(Obj.size)print(Obj.alphabet)Set custom generation parametersprint(nanoid.generate(size=10,alphabet='0123456789ABCDEF'))Obj=nanoid.Nanoid(size=10,alphabet='0123456789ABCDEF')print(Obj.nanoid)AuthorJames Kabbes
Package: kabbes-parent-class
GitHub PagesPyPIparent_classParent Class for generic Python use. Contains many helpful standard methods to speed up development for future classes. Designed to be inherited by Child classes.Installationpip install kabbes_parent_classUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.fromparent_classimportParentClassObj=ParentClass()Obj.print_atts()>>>
---ParentClass Class---
type:   ParentClassObj.type>>> 'ParentClass'AuthorJames Kabbes
Package: kabbes-pypi-builder
GitHub PagesPyPIpypi_builderproject for easily deploying code to Python Package IndexInstallationpip install kabbes_pypi_builderUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.Python Scriptimportpypi_builderaspy_buildpy_build.generateTerminalpython -m pypi_builderAuthorJames Kabbes
Package: kabbes-py-starter
GitHub PagesPyPIpy_starterHelpful python starter functions for various repository useInstallationpip install kabbes_py_starterUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.importpy_starteraspsps.print_for_loop(['Apple','Strawberry','Banana'])>>> 
1. Apple
2. Strawberry
3. Bananaps.merge_two_dicts({'A':'Alpha','C':'Nothing'},{'B':'Bravo':'C':'Charlie'})>>> {'A':'Alpha','B':'Bravo','C':'Charlie'}AuthorJames Kabbes
Package: kabbes-real-time-input
real_time_inputProvides functionality for getting real time inputs from user. Check out the blog post on medium related to this repository:MediumDocumentationPyPIInstallationpip install kabbes_real_time_inputUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.importreal_time_inputasrtiRTI_inst=rti.RealTimeInput(catalog=['Alpha','Bravo','Charlie'])RTI_inst.get_multiple_inputs()AuthorJames Kabbes
Package: kabbes-repository-generator
GitHub PagesPyPIrepository_generatorPackage for creating repositories from templates, performing operations on Git repositoriesInstallationpip install kabbes_repository_generatorUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.Python Scriptimportrepository_generatorasrepo_genrepo_gen.generate()Terminalpython -m repository_generatorAuthorJames Kabbes
Package: kabbes-smart-documentation
GitHub PagesPyPIsmart_documentationPackage for automatically generating documentation for Python repositoriesSteps to Set Upcopy the docs directory over to repository you are trying to auto documentmake a workflows directory nested in a .github directorymkdir .github/workflows/copy the make.yml file over to the workflows directoryadjust the project title in conf.py in the docs directory (found by searching "project title")if project not stored in scr/"projecttitle"__ continuereplace"src"in the api.rst in the docs directory to the folder you want documentedreplace the"src"in the"ml_pipeline <_autosummary/src>"on the last line of the index.rst in the docs directory to the folder you want documentedUsage Tipsmake sure the requirements.txt file is right since it won't build unless dependecies are installed correctlybe sure to check that Gitpages are set up right for the repositorieif unable to push to gh-pages branch, create and push another to GitHubgit branch gh-pages
Package: kabbes-the-garden
GitHub PagesPyPIthe_gardenA build of commonly-used open-source toolsInstallationpip install kabbes_the_gardenUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.Python Scriptimportthe_gardenprint(the_garden.github_accounts)Terminalpython -m the_gardenAuthorJames Kabbes
Package: kabbes-user-profile
GitHub PagesPyPIuser_profileProvides the framework for storing a unique profile for individuals and Python environments. Each user profile has a unique set of attributes and methods, much like a Python class instance.Installationpip install kabbes_user_profileUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.OverviewWhen importing your profile from a unique location on your computer, you have access to unique attributes and methods to this profile. This allows us to calluser_profile.profile.nameuser_profile.profile.say_hi()How does it work?Let's take the following code block:importuser_profileprofile=user_profile.profileThe first two lines of code import the user's unique profile. It is stored on the user's local laptop, SageMaker instance, or wherever else their code is stored. It utilizes the "USER" environment variable on your machine.
Specifically, it is found at the path ./user_profile/Users/"USER".py. This Python script is imported as a module and stored in the variable "profile"print(profile.first_name)print(profile.last_name)user_profile.say_hi()These next lines access attributes and methods of the imported Python Class,profile. The first two lines print off the attributesfirst_nameandlast_namestored in the given user's profile module.
The last line runs a module methodsay_hi().These attributes and methods can be different for every single user. This opens the door for several cool applications from a team development perspective.Why does this exist?This repository allows for multiple users to run the same code while achieving different results.Imagine you need to access a Database using an encrypted password.encryped_password='ASDF1234'database.access(encryped_password)Each person that runs this Python script has a different value for their unique encrypted password. Not everyone's password is going to beASDF1234. Instead of typing out one password that will only work for you, utilize the following:# My Profilefirst_name='James'last_name='Kabbes'encryped_password_path='C:/Users/e150445/Documents/Passwords/encrypted_password.txt'# My Co-worker's Profilefirst_name='Michael'last_name='Scott'encryped_password_path='C:/Users/e94586/Documents/Passwords/mikes_password.txt'encrypted_password=read_text_file(profile.encryped_password_path)database.access(encrypted_password)This block instead reads information from a text file stored in a path on your computer. Each user running this script will have a different value forencrypted_password_path. Using the user profile to store your uniqueencrypted_password_pathallows each team member to run this same block of code without any issues.AuthorJames Kabbes
Package: kabelwerk
Kabelwerkis a fast and secure chat as a service for digital health
applications. This is the Kabelwerk SDK for Python.InstallationThe SDK is available at theCheese Shop:# usually inside a virtual environmentpipinstallkabelwerkReleases follow semantic versioning. Make sure to check theCHANGELOG.rstwhenever upgrading to a newer version.DocumentationDocumentation — including API reference and code examples — can be found atdocs.kabelwerk.io.ContributingPlease refer toCONTRIBUTING.rstif you have found a bug or if you want to
setup the project locally.LicenceLicensed under theMITlicence.
Package: kable-python-django
Kable Python Django SDKWelcome toKable! Kable is the best solution for API products to manage pricing, billing, and API authentication.This SDK is the best way to integrate Kable into your Python (Django) application. For documentation and detailed instructions about how to use this SDK, please visithttps://docs.kable.io/docs/python-django.Note: If you use Flask instead of Django, please download ourFlask SDKinstead.Kable|https://kable.io
Package: kable-python-flask
Kable Python Flask SDKWelcome toKable! Kable is the best solution for API products to manage pricing, billing, and API authentication.This SDK is the best way to integrate Kable into your Python (Flask) application. For documentation and detailed instructions about how to use this SDK, please visithttps://docs.kable.io/docs/python-flask.Note: If you use Django instead of Flask, please download ourDjango SDKinstead.Kable|https://kable.io/
Package: kabomu
Kabomu Library for PythonThis is a port of the Kabomu library originally written in C#.NET to Python.In a nutshell, Kabomu enables building quasi web applications that can connect endpoints within localhost and even within an OS process, through IPC mechanisms other than TCP.See therepository for the .NET versionfor more details.Installpip install kabomuUsageThe entry classes of the libary areStandardQuasiHttpClientandStandardQuasiHttpServer.SeeExamplesfolder for sample file serving programs.
Package: kabooki
KabookiType safe, reusable pipes to process streams of data.from kabooki.pipes import *

if __name__ == '__main__':
    double: Pipe[int, int] = transform(lambda i: i * 2)
    half: Pipe[int, int] = transform(lambda i: i // 2)
    ge5: Pipe[int, int] = keep(lambda i: i >= 5)

    (
        range(10)
        - ge5
        + [
            double,
            half
        ]
        > log()

    )
Package: kaboom
Inspired byBoomKaboom is a command line python application which can be used to store
text snippets.PrerequisitePythonMacOSX (should work on linux but not tested)installationpip install kaboomUsagekaboom show all- shows all available key’skaboom show <key>- shows script forkaboom add <key> <value>- add key to storekaboom delete <key>- delete key from storekaboom delete all- empty up the storekaboom- show help messagekaboom help- show help messagekaboom update <key> <value>- update key’s value to value
Package: kabutobashi
kabutobashiconceptclass-relationship.E: EntityVO: ValueObjectS: ServiceA: Aggregategraph TD;
  
  subgraph Stock
    stock[Stock:E]
    brand[StockBrand:E]
    record[StockRecord:E]
    indicator[StockIndicator:E]
    
    stock --> brand
    stock --> record
    stock --> indicator
  end

  subgraph Stock-to-Analysis
    aggregate[StockCodeSingleAggregate:A]
    processed[StockDataProcessed:VO]
    estimated[StockDataEstimated:VO]
    
    aggregate --- |Info| stock
    aggregate --- |Method| processed
    aggregate --- |Analysis| estimated
  end

  subgraph Repositories/Storage
    repositories[(Storage/Database)] --- | read/write | stock
  end

  subgraph Pages
    raw_html[RawHtml:VO]
    decoder[Decoder:S]
    decoded_html[DecodedHtml:VO]

    raw_html --> decoder
    decoder --> decoded_html
    decoded_html --> repositories
    decoded_html --> stock
  end

  subgraph Repositories/Web
    web[[Web]] --> | crawl | raw_html
  endusageimportkabutobashiaskbdf=kb.example()methods=kb.methods+[kb.basic,kb.pct_change,kb.volatility]analysis=kb.stock_analysisagg=kb.StockCodeSingleAggregate.of(entity=df,code="1234").with_processed(methods).with_estimated(stock_analysis=analysis)print(agg)# n日前までの営業日の日付リストを取得する関数target_date="2020-01-01"date_list=kb.get_past_n_days(target_date,n=40)
Package: kabutopy
Example usageimport time
from kabutopy.client import Client

# make a client instance with the base url of the kabuto service
client = Client("http://localhost:5000")

# registering a user
client.register("user", "password", "email@email.com")

# loging in with a user, the client keeps track of the cookies
client.login("user", "password")

# creating an image
# name: string
# dockerfile: raw string / open file / path to a file
# repo_url: string
# nocache: boolean
image = client.create_image("my_image", dockerfile="some file", repo_url=None, nocache=False)

# requesting the image status and image id will poll the server
# if the id is still empty, or is the status is PENDING
# it will update id, state and output if the state is SUCCESS
# it will update state, error and output if the state is FAIL

while image.status == 'PENDING':
    sleep(1)

# creating a pipeline
# name: string
pipeline = client.create_pipeline("my_pipeline")

# creating a job
# command: string
# image: Image / int / string that is castable to int
# attachment: open file / path to a file (a list of these things also works when multiple files need to be uploaded)
# pipeline: Pipeline / int / string that is castable to int
job = client.create_job(command, image, attachments, pipeline)

# getting logs
# job: Job / int / string that is castable to int
# job_id: int / string that is castable to int
# you are able to get the logs trough the client
logs = client.get_job_logs(job)

# trough the job itself
# job_id: int / string that is castable to int
logs = job.get_logs()

# getting results
# job: Job / int / string that is castable to int
# trough the client
# will return None if the job has not yet started, is still running or has failed
result = client.get_job_results(job)

# trough the job itself
result = job.get_results()Classes and MethodsClient:register(user, password, email)login(user, password)create_image(name, dockerfile=None, repo_url=None, nocache=False) returns Imagecreate_pipeline(name) returns Pipelinecreate_job(command, image, attachments, pipeline) returns Jobsubmit_pipeline(pipeline)get_job_logs(job, log_id=None) returns Logget_job_results(job, pipeline=None) returns None or ByteIOload_image(self, eid) returns loaded Imageload_pipeline(self, eid) returns loaded Pipelineload_job(self, eid, pipeline) returns loaded JobImage:classmethod:load(eid) returns loaded imagePipeline:submit()classmethod:load(eid) returns loaded pipelineJob:get_logs(log_id=None) returns Logget_results() returns None or ByteIOclassmethod:load(eid, pipeline) returns loaded jobLog:readlines(raw=True) returns lines or (line_id, line) if raw is Falserefresh()
Package: kac
kacPython and CLI tool for CHANGELOG files that follow theKeep a Changelogstandard.Installationpip install kacCLIRunkacin the same directory as your Changelog. By default,kaclooks for a file calledCHANGELOG.md(case-insensitive).Usage: kac [OPTIONS] COMMAND [ARGS]...Python and  CLI tool for CHANGELOG files that follow the Keep a Changelogstandard.Options:--help  Show this message and exit.Commands:bump  Bump the latest version of a CHANGELOG file.copy  Copy the latest release's changelog text.init  Create an empty CHANGELOG file.LimitationsMust be run in the same directory as your CHANGELOG fileOnly works for semverkac bumpcan "format" (ex: remove extra empty lines) CHANGELOG files, this could be unfavorable for users
Package: kaching
KachingSound effects for making test driven development a bit more fun.Kaching plays a variety of sounds from computer games to signify the
beginning of a test run, a failure and a success.To install:$apt-getinstallmplayer(orequivalent)$pipinstallkachingCommand line use:$kachingstart[startingsound]$kachingfail[failuresound]$kachingwin[passingtestsound]Python API use::>>>importkaching>>>kaching.start()[startingsound]>>>kaching.fail()[failuresound]>>>kaching.win()[passingtestsound]Kaching requires mpg123 to be installed to make a sound although it won't
raise an exception / exit with status code > 0 if it isn't.Sounds taken from :http://soundfxnow.com/
Package: kac-tools
kac-toolskac-toolsis a CLI python tool which parses CHANGELOG.md (in the keep-a-changelog format).
It can be used to extract only specific sections.InstallationReleaseThe latest release is available in the public PyPi repo.
Install via pip:pip install kac-toolsFrom git repoYou can also install directly from the git repo.Clone the repositorygit clone <git-url> <destination>Change into the clone directorycd <destination>Install via pippip install .Usageusage: kac-tools [-h] [-c CHANGELOG_FILE] [-s SECTION]

options:
  -h, --help            show this help message and exit
  -c CHANGELOG_FILE, --changelog-file CHANGELOG_FILE
                        Path to changelog file to parse (default: CHANGELOG.md).
  -s SECTION, --section SECTION
                        Section that should be extracted (default: latest).