Saravanan666/pypi-org huggingface dataset:
Package: akamaikickstart
# Python Code ExamplesThis will guide you through the steps necessary to set up credentials and start playing with the sample code.  Note that once you’ve set up credentials for one language, you don’t need to re-create them for another language.  If you set up the credentials for python, php will use the same credentials.These instructions expect that you are in the examples/python subdirectory of the github repository.# Authentication and Provisioning
The easiest way to walk through the needed provisioning and authentication to get your credentials is by following the instructions on [Authorizing your Client](https://developer.akamai.com/introduction/Prov_Creds.html) from the Getting started guide on our site.  Once you have done this, you’ll be able to run the ‘diagnostic tools’ example scripts.## Credential File Creation
You can get your credentials set up for use by the sample code by using the gen_edgerc.py command in the examples/python directory:`bash $ ./gen_edgerc.py `When you run gen_edgerc.py with no command line options, the script will create a ‘default’ section in your ~/.edgerc file.  For examples other than diagnostic_tools.py you’ll need to pass the name of the appropriate section as an
argument, for example this is how you’d set up ccu.py:`bash ./gen_edgerc.py ccu `You can find the correct name for the credentials section on the “section=” line in the example script.  If you run the script again for a specific section (including ‘default’) it will overwrite the previous credentials with your new ones.## Diagnostic Tools - diagnostic_tools.py
The first example code to test is the diagnostic_tools.py script.  The credentials from the creation step give you permission to run the “dig” command from the API.` bash ./diagnostic_tools.py `This simple script runs the ‘locations’ call to find out where the Akamai servers are located.  The API can run the ‘dig’ for you from any of these locations.  Once it has done that, it grabs one at random and makes the dig call from there.By reviewing the code you can see how simple it is to make API calls.All of the sample code in the directory also supports –verbose to see the output on the screen, and/or –debug to see all of the HTTP traffic.  These flags can help enormously in figuring out what’s going wrong or how it’s working.` bash ./diagnostic_tools.py--verbose./diagnostic_tools.py--debug`## CCU (Purge) - ccu.py
We have a [blog post](https://community.akamai.com/community/developer/blog/2015/08/20/getting-started-with-the-v2-open-ccu-api) with instructions on getting set up with the CCU API.
Prerequisites: ccu credentials and edit the filename to a valid file on your system
Package: akamaiproperty
Python SDK for Akamai Property ManagerA Python SDK of Akamai Property Manager.
The advantage of SDK is application developers need not know about the PAPI calls and their usage. Application developers can just focus on getting their work done on Property Manager configs programmatically using the objects of AkamaiProperty.CredentialsIn order to use this configuration, you need to:Set up your credential files as described in theauthorizationandcredentialssections of the getting started guide on developer.akamai.com.When working through this process you need to give grants for the property manager API and the User Admin API (if you will want to move properties).  The section in your configuration file should be called 'papi'.OverviewThe advantage of Akamai Property class is application developers need not know about the PAPI calls and their usage. Application developers can just focus on getting their work done on Property Manager configs programmatically using the objects of AkamaiProperty.Install pip package available$ pip install akamaipropertyInstantiate the object.>>> from akamaiproperty import AkamaiProperty
>>> myProperty = AkamaiProperty("/Users/apadmana/.edgerc","test_bulkseach_update_1","<accountSwitchKey>")
>>> myProperty = AkamaiProperty("/Users/apadmana/.edgerc","test_bulkseach_update_1")Print Basic Information>>> myProperty.printPropertyInfo()
Property Name: test_bulkseach_update_1
Contract Id: ctr_C-1IE2OHM
Group Id: grp_163363
Active Staging Version: 18
Active Production Version: 18Create a new version>>> myProperty.createVersion(18)
'78'Get rule Tree>>>myProperty.getRuleTree(18)
{'accountId': 'act_B-C-1IE2OH8', 'contractId': 'ctr_C-1IE2OHM', 'groupId': 'grp_163363', 'propertyId': 'prp_605086', 'propertyName': 'test_bulkseach_update_1', 'propertyVersion': 18, 'etag': 'd0d28a6b71e665144955f7f7e1ff214933d119d7', 'rules':.....}Activate the config>>>myProperty.activateStaging(18,"testing activation",["apadmana@akamai.com"])
True
Package: akamai_purge_cache
Akamai-Purge-Cache : Interactive ScriptCurrent Python Script"""Module to invoke Akamai Fastpurge via simple CLI utility."""importosimportclickfromfastpurgeimportFastPurgeClient@click.command()@click.option("paths","--path","-p",multiple=True,help="A single URL to Purge (This option is repeatable for additional URLs)",)@click.option("--dryrun","-d",is_flag=True,help="Just print the command and args that will be run and exit",)defmgpurge(paths:list[str],dryrun:bool)->None:"""Module to invoke Akamai Fastpurge via simple CLI utility.:param list[str] paths: List of paths to purge from Akamai cache.:param bool dryrun: Just print the command and args that will be run and exit"""# Default: Credentials are read from ~/.edgerc# client = FastPurgeClient()# Environment: Credentials are read from environment variablesclient=FastPurgeClient(auth={"client_secret":os.environ["AKAMAI_DEFAULT_CLIENT_SECRET"],"host":os.environ["AKAMAI_DEFAULT_HOST"],"access_token":os.environ["AKAMAI_DEFAULT_ACCESS_TOKEN"],"client_token":os.environ["AKAMAI_DEFAULT_CLIENT_TOKEN"],})ifdryrun:print("These paths will be purged:")forpathinpaths:click.echo(message=path)return# Start purge of some URLs# purge is a Future, if we want to ensure purge completed# we can block on the result:purge_cmd=client.purge_by_url(urls=paths)# purge is a Future, if we want to ensure purge completed# we can block on the result:result=purge_cmd.result()print("Purge completed:",result)if__name__=="__main__":# pylint: disable=no-value-for-parametermgpurge()TO-DODocument local installationDocument local runDocument buildingDocument publishing to PY-PiDocument remote installation and usage
Package: akamai-shared-cloudlets
Akamai shared cloudlets libraryPurposeThis python program implements the API requests that deal with Akamai Shared Cloudlets
(for more information about Akamai cloudlets,
seehttps://techdocs.akamai.com/cloudlets/reference/api).It could be used as a building block for any application using the 'shared cloudlets API'
(such as Akamai CLIhttps://github.com/akamai/clior Terraform Akamai providerhttps://registry.terraform.io/providers/akamai/akamai/latest/docs/guides/get_started_cloudlets).Using itPrerequisitesYou need Akamai credentials. To get them, see thehttps://techdocs.akamai.com/developer/docs/set-up-authentication-credentialsdocumentation.You also need Python 3.8+ (it should work with older versions, but 3.8 is the oldest one that I tested with).RunThere are two basic ways how to work with the app - importing the app and making it part of your own code like that - or there is limited 'cli' capability (that doesn't provide all the requests, but it may help you find some basic information anyway.)Getting itIt is recommended to use this app in virtual environment (especially for your development needs). Then install the app from PyPI.
Following command installs the app from the TEST PYPI:TEST PYPIpython3 -m pip install --index-url https://test.pypi.org/simple/ akamai-shared-cloudletsPROD PYPIpython3 -m pip install akamai-shared-cloudletsPoetryTo add the library to your own project as dependency, and you happen to use Poetry to manage your dependencies:poetry add akamai-shared-cloudletsUsing itNext step would be to import (example):from akamai_shared_cloudlets import akamai_api_requests_abstractions as akamai_apiAnd finally you're ready to use the app:print(akamai_api.list_cloudlets("~/.edgerc"))Example above does not do very much, but it shows how to start using the app.Usint it as CLIIssuing the following command:cloudlets list-cloudletsWould produce this output (for example, it may be different in your case)Sending request to Akamai...
[{'cloudletType': 'ER', 'cloudletName': 'EDGE_REDIRECTOR'}]Help is provided when issued thecloudletscommand without any parameters orclouldets --help
Package: akande
ÀkàndéÀkàndé is an advanced voice assistant built in Python, leveraging OpenAI's GPT models for natural language understanding and response generation. Àkàndé has been enhanced to include a caching mechanism for efficient response retrieval and the ability to generate PDF summaries of interactions, making it ideal for both personal assistance and executive briefing purposes.FeaturesNatural Language Understanding: Utilizes OpenAI's GPT models to understand and generate human-like responses.PDF Summary Generation: Generates PDF summaries of voice interactions, including a question header, AI-generated response, and an accompanying logo.Caching Mechanism: Implements a SQLite-based caching system to store and retrieve past queries and responses, reducing API calls and improving response times.Voice Recognition: Integrates with speech recognition libraries to support voice input.Text-to-Speech: Converts text responses into speech, providing an interactive voice-based user experience.SetupPrerequisitesPython 3.8+Pipenv or virtualenvInstallation1. Clone the repositorygitclonehttps://github.com/sebastienrousseau/akandecdakande2. Install dependenciespipenvinstall# If using pipenv# orpython-mvenvvenvsourcevenv/bin/activate# On Windows use `venv\Scripts\activate`pipinstall-rrequirements.txt3. Set up environment variablesCopy .env.example to .env and fill in your OpenAI API key and other
configurations.OPENAI_API_KEY=xxxxxxxxxx4. Running Àkàndépipenvrunpython-makande# If using pipenv# orpython-makandeUsageAfter starting Àkàndé, simply follow the voice prompts to ask questions.
Àkàndé will respond verbally and generate a PDF summary for each interaction
in the specified output directory.ContributingPull requests are welcome. SeeCONTRIBUTING.mdfor guidelines.LicenseThis project is licensed under the MIT license - see theLICENSEfile for details.
Package: akane
akaneA very simple, strongly typed library to easily create test cases for anything.InfoThis project is mostly purpose built to create e2e integration tests for my CLI apps
(likegoup, for example). I wanted something lean
which takes almost no effort to write tests with. Feel free to use it for your own
projects, but don't expect a great developer experience.If you are looking for proper testing libraries, feel free to take a look into the
following resources.unittestRobot FrameworkpytestInstallationpip install akaneorpip install git+https://github.com/zekrotja/akane.gitExampleThis example is also availble in theexamplesdirectory.importosimportakanefromakane.assertionsimportassert_eqfromakane.proceduresimportsetup,test,teardown@setup()definit_env_vars():os.environ["FOO"]="bar"@test(name="environment variables")deftest_env():assert_eq("bar",os.environ["FOO"])@test(name="environment in shell")deftest_cmd():res=akane.exec(("sh","-c","echo $FOO"))assert_eq("bar\n",res)@test(name="failing test")deffails():return(False,"whoops")@teardown(name="environment variables")defdelete_env_vars():delos.environ["FOO"]defmain()->int:returnakane.run_all()if__name__=="__main__":exit(main())
Package: akaraike
Password GeneratorA password generator module made by the awesome folks at Python AbiaThis is a simple Open-Source Python library that helps you generate passwords quickly and neatly.
It can be integrated into any form of application where there is the need to generate passwords or Secret keysFeaturesSet length for keyChoose types of characters or mixture of characters to useUsagefromakaraikeimportPasswordGenerator#Create an object of the PAsswordGenerator classpg=PasswordGenerator()#set length of characterspg.set_charset_length(length=5)'''Set types of characters as a listAcceptable values are- lowers for lowercase alphabets- uppers for UPPERCASE alphabets- numbers for 0123456789- specials for @$;:,._'''pg.set_charset_types(type=['numbers','specials'])#print the password generatorprint(pg.generate_password())Contributing to AkaraikeTo install akaraike, along with the tools you need to develop and run tests, run the following in your virtualenv:$pipinstall-e.[dev]
Package: akari
Tag your anime photos effortlesslyakariis a work in progress python program to manage anime artworkIt usesiqdbto reverse-search images and tags your images automaticallyYou can add new tags or remove tags manuallyYou can select some tags and filter your images accordinglyHas a built in image viewer for fullscreen viewingRequirementsrequestsBeautifulSoup 4PyQt5InstallationFor user installation, simply run:pip3 install --user akariThen add$HOME/.local/binto your$PATH:echo PATH=\"\$PATH:\$HOME/.local/bin\" >> $HOME/.bashrc
source $HOME/.bashrcAlternatively, you can do a system wide installation:sudo pip3 install akariUsageusage: akari [-h] [-s /path/to/dir] [-g]

optional arguments:
  -h, --help            show this help message and exit
  -s /path/to/dir, --scan /path/to/dir
                        Scan directory for new images
  -g, --gui             Start the GUI
  -v, --version         Displays the versionTODO
Package: akari-client
akari_clientAKARIを使うためのクライアントライブラリインストールpipinstallakari_client注意:akari_clientを使う前にAKARI本体の設定が完了している必要があります。
詳しくはオンラインドキュメントを参照してください。Getting Started: ディスプレイに文字を表示するwithAkariClient()asakari:m5=akari.m5stackm5.set_display_text("Hello, world!")その他のサンプルや使い方はオンラインドキュメントを参照してください。ドキュメントhttps://AkariGroup.github.io/docs
Package: akarsu
akarsuis the New Generation Profiler based onPEP 669. The name of the project, comes from the
surname of a minstrel namedMuhlis Akarsu, which meansstream.Installationakarsucan be installed by runningpip install akarsu. It requires Python 3.12.0+ to
run.Usagecatexample.pyOutput:deffoo():x=1isinstance(x,int)returnxdefbar():foo()bar()akarsu-fexample.pyOutput:Count     Event Type     Filename(function)
         1      PY_CALL       example.py(bar)
         1      PY_START      example.py(bar)
         1      PY_CALL       example.py(foo)
         1      PY_START      example.py(foo)
         1       C_CALL       example.py(<built-in function isinstance>)
         1      C_RETURN      example.py(foo)
         1     PY_RETURN      example.py(foo)
         1     PY_RETURN      example.py(bar)

Total number of events: 8
  PY_CALL = 2
  PY_START = 2
  PY_RETURN = 2
  C_CALL = 1
  C_RETURN = 1If you want to show only the function calls in the output, you can use the-cor--callsargument.akarsu-c-fexample.pyOutput:Count     Event Type     Filename(function)
         1      PY_CALL       example.py(bar)
         1      PY_CALL       example.py(foo)
         1       C_CALL       example.py(<built-in function isinstance>)

Total number of events: 3
  PY_CALL = 2
  C_CALL = 1
Package: akasa
About LaravelNote:This repository contains the core code of the Laravel framework. If you want to build an application using Laravel, visit the mainLaravel repository.Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:Simple, fast routing engine.Powerful dependency injection container.Multiple back-ends forsessionandcachestorage.Database agnosticschema migrations.Robust background job processing.Real-time event broadcasting.Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation gives you a complete toolset required to build any application with which you are tasked.Learning LaravelLaravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. TheLaravel documentationis in-depth and complete, making it a breeze to get started learning the framework.You may also try theLaravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.If you're not in the mood to read,Laracastscontains over 1100 video tutorials covering a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.ContributingThank you for considering contributing to the Laravel framework! The contribution guide can be found in theLaravel documentation.Code of ConductIn order to ensure that the Laravel community is welcoming to all, please review and abide by theCode of Conduct.Security VulnerabilitiesPlease reviewour security policyon how to report security vulnerabilities.LicenseThe Laravel framework is open-sourced software licensed under theMIT license.
Package: akashi
Akashi Commnad Line ToolUnofficialakashicommand line tool.This command line tool can record your attendance from command lime.RequirementsPython 3.5 or higherchromedriverInstall$pipinstallakashiUsage$ akashi --help
Usage: akashi [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  attend  Attend to akashi
  leave   Leave to akashi
  login   Login to akashi
  logout  Logout to akashiLicenseMIT License.
Package: akashjeez
akashjeezakashjeez is a Python Package to Deliver a Lot of Useful Services!InstallationUse the package managerpipto install akashjeez.pipinstallakashjeezUsageimportakashjeez## Check Attributes and Methods available in this package.print(dir(akashjeez))# returns list of attributes and methods of this module.## Service: Greetings to User!print(akashjeez.say_hello())# returns 'Hello, World!'print(akashjeez.say_hello("Everyone"))# returns 'Hello, Everyone!'## Service: Get Coordinates From Google for Input Location# Syntax: >> google_place(location)print(akashjeez.google_place('queensland chennai'))## Service: Get LIVE CoronaVirus Stats From United States of America!print(akashjeez.covid19_usa_stats())## Service: Get LIVE CoronaVirus Stats From All Over Globe!print(akashjeez.covid19_stats())## Service: Get Cloud Compute Pricing from Public API.# Syntax: >> cloud_compute_cost(provider, input_cpu, input_memory, input_region)# Providers = alibaba, amazon, azure, google# Input Regions = all, US, EU, Asia etcprint(akashjeez.cloud_compute_cost('azure',2,4,'asia'))print(akashjeez.cloud_compute_cost('amazon',2,4,'us'))## Service: Get Live & Forecast Weather Report Data for Any Location from Public API.# Syntax: >> get_weather_data(city_name)print(akashjeez.get_weather_data('chennai'))print(akashjeez.get_weather_data('los angeles'))## Service: Get Country Info like COuntry Code, capital, ISO & Phone Code using Public API .print(akashjeez.get_country_info())## Service: Get New Comic Book Data using Public API.print(akashjeez.comic_books_data())## Service: Get Movie Infromation using Public API.# Syntax: >> movie_search(movie_name)print(akashjeez.movie_search('furious'))## Service: Get a Random Fake User Data using Public API.print(akashjeez.random_user_generator())## Service: Get All Cars Makers & Manufacturers Data using Public API.print(akashjeez.car_maker_manufacturers())## Service: Get Latest Nobel Prize Data using Public API.print(akashjeez.get_nobel_prize())## Service: Get All File Formats Data using Public API.print(akashjeez.file_formats())## Service: Get Latest Open Trivia Q&A Data using Public API.print(akashjeez.open_trivia()## Service: Get Latest & Upcoming Movies Type & Name Data from BookMyShow.com# Syntax: >> bookmyshow(city_name)print(akashjeez.bookmyshow('chennai'))## Service: Search Public DNS Info from http://dns.google.comprint(akashjeez.dns_search('akashjeez.herokuapp.com')## Serice: Shuffle of Cards Randomly!print(akashjeez.shuffle_cards())## Service: Calculate Age by Passing Date of Birth as Input.# Syntax: >> age_calculator(input_dob)print(akashjeez.age_calculator('10-04-1993'))ContributingPull Requests are Welcome. For Major Changes, Please Open an issue First to Discuss What You Would like to Change.Please Make Sure to Update Tests as Appropriate.LicenseMIT
Package: aka-stats
Aka StatsAka (赤 - red in japanese) Stats.Unified module for keeping stats in Redis.The goal is to have an easy way to measure an application, and then expose these metrics through a HTTP API,
either to process it in some web ui, or expose it to Prometheus.fromaka_statsimportStats,timerwithStats()asstats:t=timer()...stats("task_done",next(t).stat)Or for asynchronouse code:fromaka_statsimportStats,timerasyncdefprocess_device(device_id:str):asyncwithStats()asstat:t=timer()...stats("task_done",next(t).stat,extra_labels={"device_id":device_id})InstallationAnd add this package to your project:poetryaddaka-statsUsage GuideCheck out the usage guide here:Usage.mdPrometheus formattersInformation how to write a formatter is here:PrometheusFormatter.mdOptional Standalone HTTP APICheck out this guide here:Included HTTP APIPytest pluginThis module is also a pytest plugin, providing a fixturemock_statswhich collects stats instead of writing them
to Redis.deftest_something(mock_stats):do_something()assertmock_stats[0]==(1612550961,"test",1,None)And the module with function:defdo_something():withStats()asstats:stat("test",1)