Saravanan666/pypi-org huggingface dataset:
Package: python-clik
CLIKCLIK is a command line interface tool to hide and manage your API keys and Secret/Auth tokens.
This is for project managers for easy management of project-related keys and their distribution.How CLIK WorksCLIK provides you with a command line interface that allows you to store your API Keys and Secret/Auth tokens in an encrypted JSON file.
You are provided with an option to either store this key locally in a file, or making a note of it to store it anyway you like.
The encrypted JSON file can safely be uploaded to VCS repositories, meaning access will only be granted to those who have been given the JSON decryption key by you.
You can use the CLIK to also add, remove or modify keys, as and when required.Built WithSoftwareVersionPython 33.7.1Visual Studio Code1.50.1Tested WithOperating SystemVersion(s)Microsoft WindowsWindows 10Apple macOS10.15(Catalina), Beta 11.0(Big Sur)InstallationYou can either clone this repository or install it via pippipinstallpython-clikUsageOnce you install CLIK, a short and concise documentation can be found br running the following command on your console:clikInitialising the JSON FileTo create a new file to store keys type the following command in your console:clikinitNow, you can specify all the keys you want to add in a step by step fashion.
CLIK will automatically encrypt the file for you and generate your encryption key.
Now you can either store the key locally or write it down for safekeeping.
So now, your JSON file containing all your keys is ready for upload on your repository.Adding/Subtracting KeysTo add new keys to an existing JSON file, type the following command in your console:For Adding KeysclikFILENAMEaddFor Subtracting KeysclikFILENAMEsubtractFor Modifying KeysTo modify any key in an existing JSON file, type the following command in your console:clikFILENAMEmodifyFor Encrypting the Keys FileTo encrypt the JSON file, type the following command in your console:clikFILENAMEencThis will ask for any existing Keys to encrypt the JSON file with. If you have an existing Key,
continue. Else, you can specify/create a new key for this new encryption.For Decrypting the Keys FileTo decrypt the JSON file, type the following command in your console:clikFILENAMEdecThis will ask for any existing Keys to decrypt the JSON file with. If you have an existing Key,
continue normally. Else, provide a path for the Key to be used for decryption.Note: For any kind of operation on an encrypted JSON file, you need to decrypt it first.HelpTo check the syntax for any of the commands or their function, type the following command in your console:clik--helpVersionTo check the version of CLIK you're running, type the following command in your console:clik--versionNote: Before uploading the JSON file containing your Keys to any VCS, it is recommended to store your .key file containing your Key to decrypt this encrypted JSON file in .gitignore of any other directory of your computer.DependanciesprintyPython 3cryptographyContributorsMihir SinghAnushka AgarwalKushagra GuptaAriz Siddiqui
Package: python-cli-menu
python-cli-menuis a simple cross-plateform Python module that allows you to easilly create pretty custom menus in console. Customize the title, options, every colors and initial cursor position as you wish. Use arrows keys to navigate through the menu and enter key to select an option.Quickstartdefmenu(title:str|Sequence[str],options:list[str]|tuple[str,...],cursor_color:str|tuple[int,int,int],title_color:(str|tuple[int,int,int]|None|Sequence[str|tuple[int,int,int]|None])=None,options_color:(str|tuple[int,int,int]|None|Sequence[str|tuple[int,int,int]|None])=None,initial_cursor_position:str|int=0,)->str:Creates a pretty menu in console with arrow key navigation and returns the selected option. Clears console once an option is selected.titleis the main title of the menu, can be displayed on multiple lines if a list or a tuple is passed.optionsis the list of actions or choices that can be selected.cursor_coloris the color of the cursor, available colors arered,green,yellow,blue,magenta,cyan,whiteand their lighter versions (e.g.light_red), use custom color by providing a tuple containing color RGB values.title_coloris the color of the title, available colors are the same ascursor_color, customize the color of each line by providing a list of colors,
each color will be associated with the line of the corresponding index (default color is terminal text color).options_coloris the color of options, available colors are the same ascursor_color, customize every option color by providing a list of colors,
each color will be associated with the option of the corresponding index (default color is terminal text color).initial_cursor_positionis the option or the index of the option where the initial cursor position is set (default position is first element).Examples :frompythonclimenuimportmenuOPTIONS=["Option 1","Option 2","Option 3","Quit"]# Creates a simple console menu with blue cursormenu1=menu(title="Amazing Console Menu",options=OPTIONS,cursor_color="blue")menu2=menu(title=["Amazing Console","Menu"],# displays title on multiple linesoptions=OPTIONS,cursor_color=(255,95,46),# sets the cursor color using RGB valuestitle_color=["blue",# colors "Amazing Console""light_red"# colors "Menu"],initial_cursor_position=-1# sets cursor default position to 'Quit')menu3=menu(title=["Amazing Console","Menu"],# displays title on multiple linesoptions=OPTIONS,cursor_color="yellow",title_color="light_green",# colors all lines of titleoptions_color=["magenta",# colors options[0]"light_cyan",# colors options[1](192,11,168)# colors options[2]# option[3] color is not specifed so it will be considered as None],initial_cursor_position=OPTIONS[1]# sets cursor default position to 'Option 1')
Package: python-cli-scheduler
CLI SchedulerLibrary support scheduling of task via command line interface.Installationpip3installpython-cli-schedulerUsageScheduler format:^<run_now>@<interval>/<delay>$<end_timestamp>#<retry>Parameters:run_now: Execute now. Default:Trueinterval: Repeat execute after number of seconds. If set toNone, execute one time and not repeat. Default:Nonedelay: Execute at seconddelay-th at each interval. Default: `0end_time: Execute untilend_time. If set toNone, infinite repeat. Default:Noneretry: Retry if exception when executed. Default:TrueExampleUse with decoratorComing soonUse with scheduler job classExample job to print a lucky number at second 3 every minute.importtimeimportrandomfromcli_scheduler.scheduler_jobimportSchedulerJobclassRotationLuckJob(SchedulerJob):def__init__(self,scheduler):super().__init__(scheduler=scheduler)def_pre_start(self):self.logger.info('Rotation luck. Have fun !')def_start(self):self.n=random.randint(0,1000)def_execute(self,*args,**kwargs):self.logger.info(f'The lucky number is{self.n}')def_end(self):delself.ndef_follow_end(self):self.logger.info('Done')if__name__=='__main__':end_time=int(time.time())+5*60# ^false: Not execute now# @60: Repeat execute every 60 second# /3: Execute at second 3# ${end_time}: Run until end_time# #false: Don't retry if exception when executejob=RotationLuckJob(scheduler=f'^false@60/3${end_time}#false')job.run()
Package: python-cli-ui
NoteThis project is deprecated. Please usecli-uiinstead.Originaly readme below.DocumentationSeepython-cli-ui documentation.DemoWatch theasciinema recording.Usage$pipinstallpython-cli-uiExample:importui# coloring:ui.info("This is",ui.red,"red",ui.reset,"and this is",ui.bold,"bold")# enumerating:list_of_things=["foo","bar","baz"]fori,thinginenumerate(list_of_things):ui.info_count(i,len(list_of_things),thing)# progress indication:ui.info_progress("Done",5,20)ui.info_progress("Done",10,20)ui.info_progress("Done",20,20)# reading user input:with_sugar=ui.ask_yes_no("With sugar?",default=False)fruits=["apple","orange","banana"]selected_fruit=ui.ask_choice("Choose a fruit",fruits)#  ... and more!
Package: python-clock-timer
Clock TimmerClock Timmer is a Python library that provides a tool for logging the time and number of calls of a function in Python. It can be used as a decorator or context manager, allowing you to log the time and number of calls of a function or block of code without modifying any lines of code within the function or block.Installation
To install Clock Timmer, use the following command:pip install python-clock-timerUsageAs a decoratorTo use Clock Timmer as a decorator, you can use it like this:fromclock_timerimportClockLoggerlogger=ClockLogger()@loggerdefmy_function():# code of the functionAfter using the decorator, you can access the time and number of calls logs of the function by accessing the log attribute of the Clock Timmer object. For example, to get the number of calls and total time elapsed of the my_function, you can do the following:print(logger.log['my_function'])As a context managerTo use Clock Timmer as a context manager, you can use it like this:fromclock_timerimportClockLoggerwithClockLogger()aslogger:# code of the blockprint(logger.total_elapsed)After using the context manager, you can access the total time elapsed by accessing the elapsed attribute of the Clock Timmer object.ExampleHere is an example of using Clock Timmer as a decorator and a context manager:fromclock_timerimportClockLoggerimporttime# Using Clock Timmer as a decoratorlogger=ClockLogger()@loggerdefmy_function():time.sleep(1)my_function()my_function()print(logger.log['my_function'])the outputmy_function was called 1 times, total time elapsed: 1.005031s
my_function was called 2 times, total time elapsed: 2.005123s
[2, 2.0051226250000003]Using Clock Timmer as a context managerimporttimefromclock_timerimportClockLoggerwithClockLogger()aslogger:time.sleep(1)print(logger.total_elapsed)The output of this example will be:Total time elapsed: 1.003622s
1.003622042ContributingWe welcome contributions to Clock Timmer. If you have any ideas for improvements or want to report a bug, please open an issue or submit a pull request.LicenseClock Timmer is licensed under the MIT License. See theLICENSEfile for more details.
Package: python-cloudbackup-sdk
***************************Cloud Backup API Python SDK***************************:version: 0.20.0:Presentations: `Introduction`_Welcome to the Python bindings to the Rackspace Cloud BackupAPI. These bindings will help you make the most of the Cloud Backupsystem and integrate it into your workflows.**Table of Contents**.. contents:::local::depth: 2:backlinks: none========Features========* Python 2.7 and 3.3+ supported* Easy to install (pip)* Easy to test (nose + tox)* Designed to be easy to use on multiple platforms.. code-block:: python#TODO: Update this for the new API#	Create a backup#	Run a backup#	Get the backup report=======Install=======Make sure you have libgmp, libssl, and the Python development headers installed::sudo apt-get install python-dev python3-devOn Windows, make sure that the proper Visual Studio path is configured::SET VS90COMNTOOLS=%VS100COMNTOOLS%  # MSVS 2010SET VS90COMNTOOLS=%VS110COMNTOOLS%  # MSVS 2012.. code-block:: bashpip install git+https://github.com/rackerlabs/python-cloudbackup-sdk============Contributing============Some simple guidelines:* Unit tests for new features* Keep the code clean - pep8* Be wary of warnings and errors - pylint* 100% code coverage - keep it strongFor more details, checkout the `Contributing`_ guide.If you have any questions, please check in with Benjamen Meyer<ben.meyer@rackspace.com>... _backup_config.json: https://github.com/rackerlabs/python-cloudbackup-sdk/blob/master/examples/create_a_backup/backup_config.json.. _Contributing: https://github.com/rackerlabs/python-cloudbackup-sdk/blob/master/CONTRIBUTING.rst
Package: python-cloudcracker
#Overview
A python class to interface with the [Cloud Cracker API](https://www.cloudcracker.com/developers.html).
#Usage###Init`python import cloudcracker c = cloudcracker.CloudCrackerConnection() `###Grab dictionaries
format can be ‘wpa’, ‘ntlm’, ‘cryptsha512’, or ‘cryptmd5’`pythonc.grab_dictionaries('wpa')`###Submit a job
* format: ‘wpa’, ‘ntlm’, ‘cryptsha512’, or ‘cryptmd5’
* email: email to deliver results to
* dictionary: dictionary you would like to use (from dictionaries call)
* size: size of dictionary (from dictionaries call)
* uploaded_file: pcap file to crack`pythonc.submit_job('wpa','nicks@ydekproductions.com', 'english', 604, uploaded_file) `###Check job status`pythonc.grab_job_status('wpa','abcdefghijklmnopqrstuvwxyzaejeil') `
Package: python-clouddns
Homepage:https://github.com/chmouel/python-clouddnsCredits:Copyright 2011 Chmouel Boudjnah <chmouel@chmouel.com>Licence:BSDUsageA Rackspace Cloud username and API key are required and can be obtained
fromhttps://mycloud.rackspace.com.Domains and records can be found by specifying their name or id.  To
enable debugging output for the HTTP connection, include the keyword
argument debuglevel=1.  Additional debugging output is available by
setting the ‘PYTHON_CLOUDDNS_DEBUG’ environment variable.List all domains:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

for domain in dns.get_domains():
    print domain.nameCreate a new domain:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

dns.create_domain(name='1234-example.com', ttl=300,
                  emailAddress='me@you.com')Import a domain from a BIND zone file or string:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

with open('/tmp/example.com.zone', 'r') as f:
    dns.import_domain(f)Update a domain:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

domain = dns.get_domain(name='1234-example.com')
domain.update(ttl=600)Delete a domain:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

domain = dns.get_domain(name='1234-example.com')
dns.delete_domain(domain.id)List all records for a domain:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

domain = dns.get_domain(name='1234-example.com')
for record in domain.get_records():
    print '(%s) %s -> %s' % (record.type, record.name, record.data)Create new record:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

domain = dns.get_domain(name='1234-example.com')
domain.create_record('www.1234-example.com', '127.0.0.1', 'A')Update a record:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

domain = dns.get_domain(name='1234-example.com')
record = domain.get_record(name='www.1234-example.com')
record.update(data='10.1.1.1', ttl=600)Delete a record:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey')

domain = dns.get_domain(name='1234-example.com')
record = domain.get_record(name='www.1234-example.com')
domain.delete_record(record.id)Alternative Geographic EndpointsThe examples above use the default authentication endpoint in the US. For UK
accounts, you must override the authentication URL:#!/usr/bin/env python
import clouddns
dns = clouddns.connection.Connection('username','apikey',
                                     authurl=clouddb.consts.uk_authurl)GUIA web based GUI is available here:https://github.com/rackerhacker/rackspace-clouddns-gui
Package: python-cloudfoundry
# Python-CloudfoundrySample usage:```pythonfrom cloudfoundry import CloudFoundryInterfacecfi = CloudFoundryInterface("api.vcap.me", "username", "password")cfi.login()cfi.delete_app('demo')cfi.delte_service('demo')```or store token locally:```pythonfrom cloudfoundry import CloudFoundryInterfacecfi = CloudFoundryInterface("api.vcap.me", "username", "password", store_token=True)cfi.login()cfi.delete_app('demo')cfi.delte_service('demo')```
Package: python-cloudfoundryclient
Python bindings for cloudfoundryFree software: Apache licenseDocumentation:http://docs.openstack.org/developer/python-cloudfoundryclientSource:http://git.openstack.org/cgit/openstack/python-cloudfoundryclientBugs:http://bugs.launchpad.net/replacewith the name of the project on launchpadTODOImplement pagination
Package: python-cloud-logger
python-cloud-loggerA logger with thread local storage for logging context in all logs without repeating the code. This is a json logger where some contextual fields need to be included in every log per request/thread in a safe and efficient way.Note that, all the loggers retrieved on that particular thread ( by using logging.getLogger ) will inherit the context.Usagefrompythoncloudloggerimport*logger=logging.getLogger("myapp-logger")logger.updateContext({"requestId":"1245"})logger.info("Request successfully processed")logger.clearContext()RedactJsonFormatterThis formatter is an extension of pythonjsonlogger (https://pypi.org/project/pythonjsonlogger). This extension will allow you to mask fields in the json before it logs. The redaction keys are case insensitive.Usage# Set the environment variables#importlogging,osfrompythonjsonlogger.formattersimportRedactJsonFormatteros.environ["redactionKeys"]="x-api-key,Authorization"os.environ["redactionString"]="<secret>"logger=logging.getLogger(__name__)ch=logging.StreamHandler()ch.setLevel(logging.INFO)# create formatter and add it to the handlersformatter=pythoncloudlogger.RedactJsonFormatter('%(asctime)s-%(name)s-%(levelname)s-%(message)s')ch.setFormatter(formatter)logger.addHandler(ch)logger.info({"message":"My request details","headers":{# will be masked"x-api-key":"sdfsf","another-level":{# will be masked"Authorization":"Bearer dfsfd"}}})
Package: python-clue
py-clueThe Python interface to the MDwalks CLUE.DescriptionTo be defined..Getting StartedInstallpipinstallpython-clueUsageBasic UsagefrompyclueimportCLUEclue=CLUE("localhost",# CLUE server host9999,# CLUE server port"test@linewalks.com",# test account name"password"# test account password)conn=clue.connect()cohort_list=conn.get_cohort_list()result=conn.get_cohort_person_table(123)# cohort_id: 123person_list=result.fetchall()With pandasimportpandasaspdresult=conn.get_cohort_person_table(123)df=pd.DataFrame(person_list)ContributionTo be defined...ContactChae Jungwoo -jungwoo@linewalks.com
Package: python-clustering
python_clustering is a Python library based on sklearn and numpy.It provides a wide range of functionality one might consider using during clusteringDocumentationExamplesSome of the examples of using the package are show in the respectivefolderDependenciespython = “>=3.8,<3.12”pandas = “^1.5.3”arff = “^0.9”scipy = “^1.10.1”requests = “^2.28.2”matplotlib = “^3.7.1”tqdm = “^4.65.0”pyod = “^1.0.7”tensorflow = “^2.11.0”Installationpip installpython-clusteringPytestTo run tests
We might specify folder or script:pytest-qtestsDevelopmentpython-clustering development takes place onGithub:Please submit bugs
that you encounter to theissue
trackerFurther plansImplement Task ideas regarding anomaly detection, calculating number
of cluster using various methods, cluster ensembling and cluster
similarityCreate functionality to detect pathwised clusterAdd experimental clustering methods
Package: python-cmc
Extends asn1crypto with CMC and CRMF -https://www.rfc-editor.org/rfc/rfc5272Installationpip3installpython_cmcTo run, deploy, test and everything runbashdev-run.shimportbase64fromasn1cryptoimportcmsasasn1_cmsfrompython_cmc.cmcimportPKIDatarequest="MIIFTgYJKoZIhvcNAQcCoIIFPzCCBTsCAQMxDTALBglghkgBZQMEAgEwggLUBggrBgEFBQcMAqCCAsYEggLCMIICvjCB1zCBlgIEDgTXoQYIKwYBBQUHBwYxgYMEgYC3Rw6WmoJA8VQOnb8uzODY+og6LIMWTMIiRkwPyZdje3UQ3OZ4C5dN220IFHo9r+/rzrS3M3q0xQUZwOXltkLYNYKZqrDLVbh79VwkdY2JtA304RvjeH3S5AMpJvsW4XT70MTAQ6HCwrpunIWE9epfOe3p1z2NC0MRfDfC9Qg1XjAYAgQeYyg3BggrBgEFBQcHEjEGBARjcm1mMCICBFz3WzAGCCsGAQUFBwcLMRAwDgIELp/WpzAGAgR/4SGvMIIB3KGCAdgwggHUAgR/4SGvMIIByqVzMHExCzAJBgNVBAYTAlNFMSYwJAYDVQQDDB1EYXRlIE5hbWUgMjAyMy0wMS0zMCAxNzoxMTo0MjETMBEGA1UEBRMKMTIzNDU2Nzg5MDEPMA0GA1UECgwGQVAgT3JnMRQwEgYDVQQLDAtBUC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gYIKoZIzj0EAwIwLwYJKoZIhvcNAQkEMSIEIK4iaq8/Q2BYFaGVnublUQWsnyn0RWf0o5xDi/fKUjmNMAoGCCqGSM49BAMCBEYwRAIgfFrYzIk2oCHJGc/NCM7i95pORUVQLcdToEYXhtZRKSUCIBWj3rMXblpGmCJV7TpjrHzf9KYhNZOGiwJcJXfB60xi"data=base64.b64decode(request)info=asn1_cms.ContentInfo.load(data)pkidata=PKIData.load(info["content"]["encap_content_info"]["content"].parsed.dump())print(pkidata.native)Coming soonComplete implementationMore and better tests
Package: python-cmixapi-client
python-cmixapi-clientA Python client library for theDynata Cmix API.Setuppip install python-cmixapi-clientExample Usagefrom CmixAPIClient.api import CmixAPI

cmix = CmixAPI(
    username="test_username",
    password="test_password",
    client_id="test_client_id",
    client_secret="test_client_secret"
)
cmix.authenticate()
surveys = cmix.get_surveys('closed')Supported API FunctionsCmixAPIauthenticate(*args, **kwargs)
fetch_banner_filter(survey_id, question_a, question_b, response_id)
fetch_raw_results(survey_id, payload)
get_projects()
get_surveys(status, *args, **kwargs)
get_survey_data_layouts(survey_id)
get_survey_definition(survey_id)
get_survey_locales(survey_id)
get_survey_xml(survey_id)
get_survey_sections(survey_id)
get_survey_simulations(survey_id)
get_survey_termination_codes(survey_id)
get_survey_sources(survey_id)
get_survey_test_url(survey_id)
get_survey_respondents(survey_id, respondent_type, live)
get_survey_status(survey_id)
get_survey_completes(survey_id)
create_export_archive(survey_id, export_type)
get_archive_status(survey_id, archive_id, layout_id)
update_project(project_id, status=None)
create_survey(xml_string)CmixProjectdelete_group(group_id)
delete_project()
get_full_links()
get_groups()
get_links()
get_locales()
get_markup_files()
get_project()
get_respondent_links()
get_sources()
get_surveys()ContributingInformation oncontributingto this python library.TestingTo run the tests,virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
pytest
deactivateto run the tests for this project.