Saravanan666/pypi-org huggingface dataset:
Package: asaas-sdk
asaas-sdkBiblioteca não oficial de comunicação com a API de pagamento do ASAASBaseado na documentação especificada emhttps://asaasv3.docs.apiary.io/InstalaçãoInstale o pacote via pip:pipinstallasaas-sdkUtilizaçãofromasaasimportAsaasasaas=Asaas(access_token='acess_token',production=False)A variávelacess_tokendeve receber umtoken válido.Customersnew_customer=asaas.customers.new(name='Roberto',cpfCnpj='24971563792')print(new_customer)# Customer(id=cus_000005263646, name=Roberto, email=None)PaymentsCartão de créditofromasaas.paymentsimportCreditCard,CreditCardHolderInfo,BillingTypefromdatetimeimportdatecredit_card=CreditCard(holderName='marcelo h almeida',number='5162306219378829',expiryYear='2024',expiryMonth='05',ccv='318')credit_card_holder_info=CreditCardHolderInfo(name='Marcelo Henrique Almeida',email='marcelo.almeida@gmail.com',cpfCnpj='24971563792',postalCode='89223-005',addressNumber='277',addressComplement='',phone='4738010919')pagamento=asaas.payments.new(customer=new_customer,billingType=BillingType.CREDIT_CARD,value=100,dueDate=date.today(),creditCard=credit_card.json(),creditCardHolderInfo=credit_card_holder_info.json())print(pagamento)# Payment(id=pay_6954209428403551, customer=Customer(id=cus_000005263646, name=Roberto, email=None), billingType=CREDIT_CARD, value=100)Boletopagamento=asaas.payments.new(customer=new_customer,billingType=BillingType.BOLETO,value=100,dueDate=date.today())print(pagamento)# Payment(id=pay_6954209428403552, customer=Customer(id=cus_000005263646, name=Roberto, email=None), billingType=BOLETO, value=100, invoiceUrl=https://sandbox.asaas.com/i/6997545710784231)Pixpagamento=asaas.payments.new(customer=new_customer,billingType=BillingType.PIX,value=100,dueDate=date.today())print(pagamento)# Payment(id=pay_6954209428403553, customer=Customer(id=cus_000005263646, name=Roberto, email=None), billingType=PIX, value=100)pix_info=asaas.payments.get_pix_qr(pagamento.id)print(pix_info)# 'Pix(success=True, expirationDate=2023-04-27 23:59:59, payload=00020101021226820014br.gov.bcb.pix2560qrpix-...)'
Package: asaas_sqs_module
Welcome to your CDK Python project!This is a blank project for CDK development with Python.Thecdk.jsonfile tells the CDK Toolkit how to execute your app.This project is set up like a standard Python project.  The initialization
process also creates a virtualenv within this project, stored under the.venvdirectory.  To create the virtualenv it assumes that there is apython3(orpythonfor Windows) executable in your path with access to thevenvpackage. If for any reason the automatic creation of the virtualenv fails,
you can create the virtualenv manually.To manually create a virtualenv on MacOS and Linux:$ python3 -m venv .venvAfter the init process completes and the virtualenv is created, you can use the following
step to activate your virtualenv.$ source .venv/bin/activateIf you are a Windows platform, you would activate the virtualenv like this:% .venv\Scripts\activate.batOnce the virtualenv is activated, you can install the required dependencies.$ pip install -r requirements.txtAt this point you can now synthesize the CloudFormation template for this code.$ cdk synthTo add additional dependencies, for example other CDK libraries, just add
them to yoursetup.pyfile and rerun thepip install -r requirements.txtcommand.Useful commandscdk lslist all stacks in the appcdk synthemits the synthesized CloudFormation templatecdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk docsopen CDK documentationEnjoy!
Package: asaas-waf-module
Welcome to your CDK Python project!This is a blank project for CDK development with Python.Thecdk.jsonfile tells the CDK Toolkit how to execute your app.This project is set up like a standard Python project.  The initialization
process also creates a virtualenv within this project, stored under the.venvdirectory.  To create the virtualenv it assumes that there is apython3(orpythonfor Windows) executable in your path with access to thevenvpackage. If for any reason the automatic creation of the virtualenv fails,
you can create the virtualenv manually.To manually create a virtualenv on MacOS and Linux:$ python3 -m venv .venvAfter the init process completes and the virtualenv is created, you can use the following
step to activate your virtualenv.$ source .venv/bin/activateIf you are a Windows platform, you would activate the virtualenv like this:% .venv\Scripts\activate.batOnce the virtualenv is activated, you can install the required dependencies.$ pip install -r requirements.txtAt this point you can now synthesize the CloudFormation template for this code.$ cdk synthTo add additional dependencies, for example other CDK libraries, just add
them to yoursetup.pyfile and rerun thepip install -r requirements.txtcommand.Useful commandscdk lslist all stacks in the appcdk synthemits the synthesized CloudFormation templatecdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk docsopen CDK documentationEnjoy!
Package: asab
Asynchronous Server App Boilerplate (or ASAB for short) is a microservice platform for Python 3.6+ and asyncio.
The aim of ASAB is to minimize the amount of code that needs to be written when building a microservice or an aplication server.
ASAB is fully asynchronous using async/await syntax from Python 3.6, making your code modern, non-blocking, speedy and hence scalable.
We make every effort to build ASAB container-friendly so that you can deploy ASAB-based microservice via Docker or Kubernetes in a breeze.ASAB is the free and open-source software, available under BSD licence.
It means that anyone is freely licenced to use, copy, study, and change the software in any way, and the source code is openly shared so that people could voluntarily improve the design of the software.
Anyone can (and is encouraged to) use ASAB in his or her projects, for free.ASAB is currently used formicroservices, web application servers, ETL orstream processors.ASAB is developed onGitHub.
Contributions are welcome!Installationpip install asabDocumentationDocumentation on ReadthedocsExamplesVideo tutorialExample#!/usr/bin/env python3importasabclassMyApplication(asab.Application):asyncdefmain(self):print("Hello world!")self.stop()if__name__=='__main__':app=MyApplication()app.run()PrinciplesWrite once, use many timesKeep it simpleWelldocumentedAsynchronous via Python 3.6+async/awaitandasyncioEvent-driven Architecture/Reactor patternSingle-threaded core but compatible with threadsGood support forcontainerizationCompatible withpypy, Just-In-Time compiler capable of boosting Python code performace more then 5x timesKappa architectureSupport for introspectionModularizedHigh-level architectureLicenceASAB is an open-source software, available under BSD 3-Clause License.
ASAB is maintained byTeskaLabs Ltd.
Package: asagg-lib
AsaggTheAsagglibrary(Auto Setter And Getter Generator)is a library inspired by another
library that is in theJavaenvironment, which is theLombocklibrary, this library
aims to automate the generation of access methods to private attributes,
automatically generating Getters and Setters Among other things.InstallationTo install the library use the following command, you can also use another
dependency manager of your choice, such asPoetryorPipenv.# for pip>pipinstallasagg-lib# for Poetry>poetryadd--group=devasagg-lib# for Pipenv>pipenvinstallasagg-libUsageFollowing the same line of operation as Lombock, to be able to use the library, just
use a decorator and the magic will happen. The decorators are divided into three functions
where each one has a functionality and one has the functionality of the other two,
being their combination.Old way to create properties withoutAsagg:classMyClass:def__init__(self):self._my_private_attribute="private"@propertydefmy_private_attribute(self):returnself._my_private_attributemy_class=MyClass()# method generated automaticly with Asaggprint(my_class.my_private_attribute)# Output: "private"New way to create properties withAsagg:fromasagg_libimportAsagg@Asagg.getterclassMyClass:def__init__(self):self._my_private_attribute="private"my_class=MyClass()# method generated automaticly with Asaggprint(my_class.my_private_attribute)# Output: "private"Asagg.getterThis decorator is responsible for generating the getters of the class to which it is applied,
it will scan the attributes of the class and take only the private and protected attributes,
then a function will be applied to generate a property for each attribute collected
and thus making the getters availableExample:fromasagg_libimportAsagg@Asagg.getterclassMyClass:def__init__(self):self._my_private_attribute="private"Asagg.setterThis decorator is responsible for generating the setters of the class to which it is applied,
it will scan the attributes of the class and take only the private and protected attributes,
then a function will be applied to generate a property for each attribute collected
and thus making the setters availableExample:fromasagg_libimportAsagg@Asagg.setterclassMyClass:def__init__(self):self._my_private_attribute="private"📘InfoThe function used to generate the setters also uses a typing
check to prevent a value of a different type from being assigned to the propertyAsagg.dataThis decorator is responsible for generating the setters and getters of the class to which
it is applied, it will scan the attributes of the class and take only the private
and protected attributes, then a function will be applied to generate a property
for each attribute collected and thus making the setters and getters availableExample:fromasagg_libimportAsagg@Asagg.dataclassMyClass:def__init__(self):self._my_private_attribute="private"All rights reserved © pedr.augustobarbosa.aparecido@gmail.com
Package: asalamcalculator
asalamcalculatorUnder construction! Not ready for use yet!
Currently experimenting and planning!Developed by Abdus Salam from DIA (c) 2023Exmples of How To Use (Asalam Calculator)Creating A Calculatordefadd_numbers(a,b):returna+bdefsub_numbers(a,b):returna-bdefmul_numbers(a,b):returna*bdefdiv_numbers(a,b):returna/bUSES:fromasalmcalculatorimportcalculatorcalculator.add_number(7,8)
Package: asaloader
asaloaderA program to load your code to asa-series board.Quick StartInstall the package using pippip install asaloaderUse CLI to call asaloader and load your program.asaloader prog -p COM5 -f main.hexOptions> asaloader --help
usage: __main__.py [-h] [--lc LC] {prog,print-devices,pd,print-ports,pp} ...

Program to ASA-series board.

positional arguments:
  {prog,print-devices,pd,print-ports,pp}
    prog                Program code to board.
    print-devices (pd)  List all available devices.
    print-ports (pp)    List all available serial ports.

optional arguments:
  -h, --help            show this help message and exit
  --lc LC               Set the language code. e.g. `zh_TW`, `en_US`Used byThis project is used by:ASA_HMI_data_agentNoteThis project's old name is py-asa-loader.
And the name is no longer used.
Package: asamba
ASAMBA (AsteroSeismic Approach towards understanding Massive Blue stArs) is a Marie Curie project                 that tries to infer deep physical understanding of the internal structure and evolution of massive                 stars in the light of recent very high precision space observations of pulsating massive stars.Under this umbrella, a large grid of stellar models (using MESA) are computed, and the theoretical                 pulsation frequencies of each model (after iterating over various rotation rates) are also computed                using the (GYRE) code. From this rich dataset (~3.8 million stellar models, and 42 million frequency                lists), a PostgreSQL database is built, and is made openly accessible.The present Python package provides a convenient user interface that offers all available functionalities                 to the users, and allows them to interact with the database, and conduct their own research of interest.                 Needless to say that the user must have a full understanding of the meaning of the parameters he/she uses                 which steer the analysis. We strongly recommend reading the source code, the documentation around most of                 the code blocks, and the compiled documentation pages that ships in with this package.
Package: asamint
ASAM Integration Packageasamint(ASAM integration package) integrates several automotive related opensource projects.The projects in question projects are mainly following an mechanism-not-policy approach, butasamintaims to
add higher level APIs, that could be used to implement common measurement and calibration tasks.To put it into another words,asamintwill be a command-line MCS (measurement and calibration system).The aggregated Python projects in alphabetical order:Project / repositorypip/PyPI nameasammdfasammdfobjutilsobjutilspya2ldbpya2ldbpyxcppyxcpAnd yes, all listed projects areRaspberry PItested :smile:Installationclone / fork / download fromhere.Then runpythonsetup.pydevelopDependenciesasamintcurrently doesn’t specify dependencies on its own – installing the above listed projects should be sufficient.Licenseasamintis released underGPLv2 license terms.FeaturesNote: At this stage, the project is highly experimental and hacky, so don’t expect stable APIs and tons of features!Functions are basically orchestrated using ASAM MCD-2MC (A2L) files.Some examples include (not necessarily in a working condition yet):Create calibration data files (ASAM CDF) from XCP slaves or HEX files.Setup dynamic DAQs.High-level API to create MDF files.Please refer toexamplesdirectory.Further ReadingsHere’sa collection of some public accessible documents, if you want to dig deeper into the wonderworld of automotive measurement and calibration.Miscellaneousasamintincludes some more or less usefultools.History0.1.0 (2020-06-25)First release on PyPI.
Package: asana-cli
Python wrapper for asana. Requires Python 3.6+.Installpip3 install --upgrade asana-cliCLI$ asana
Usage: asana [OPTIONS] COMMAND [ARGS]...

  Examples:

  asana list workspaces
  asana list projects --workspace="Personal Projects"
  asana list tasks --workspace="Personal Projects" --project="Test"
  asana list sections --workspace="Personal Projects" --project="Test"
  asana list tasks --workspace="Personal Projects" --project="Test" --section="Column 1"

  asana delete tasks --workspace="Personal Projects" --project="Test" --section="Column 1"

  asana mark tasks --workspace="Personal Projects" --project="Test" --section="Column 1" --completed
  asana mark tasks --workspace="Personal Projects" --project="Test" --section="Column 1" --not-completed

  asana move tasks --workspace="Personal Projects" --from-project="Test" --from-section="Column 1" --to-section="Column 2"

Options:
  --help  Show this message and exit.

Commands:
  delete
  list
  mark
  moveUsageMost command outputsline jsonand works well with thejqcommand line tool.Examples:Create csv of tasks within a project where the columns areid, name, section.$ asana list tasks --workspace="Personal Projects" --project="Test" | jq -r '[.id,.name,.memberships[].section.name] | @csv' > tasks.csvDevelopmentSetupmake installTestmake test
Package: asana-cli-acpepper
Actively maintained fork ofasana-cliA command line interface forAsanaCurrently supports:Listing of:WorkspacesProjects for given workspaceSections for given projectTasks for projects (and sections)Deleting tasksMarking tasks (not) completedMoving tasks between projects (and sections)Usage$ asana
Usage: asana [OPTIONS] COMMAND [ARGS]...

Examples:
    asana list workspaces
    asana list projects --workspace="Personal Projects"
    asana list tasks --workspace="Personal Projects" --project="Test"
    asana list sections --workspace="Personal Projects" --project="Test"
    asana list tasks --workspace="Personal Projects" --project="Test" --section="Column 1"

    asana delete tasks --workspace="Personal Projects" --project="Test" --section="Column 1"
    asana mark tasks --workspace="Personal Projects" --project="Test" --section="Column 1" --completed
    asana mark tasks --workspace="Personal Projects" --project="Test" --section="Column 1" --not-completed

    asana move tasks --workspace="Personal Projects" --from-project="Test" --from-section="Column 1" --to-section="Column 2"

    Options:
      --help  Show this message and exit.

    Commands:
      delete
      list
      mark
      moveSetupmake build && make install
Package: asana-exporter
OverviewExports Asana projects along with their resources such as tasks, stories and attachments and saves as json in a tree structure making it easy to query with tools likejqand import into other tools like Jira.InstallFrom pypi:sudo apt install python3-pip
pip install asana-exporterFrom snap:sudo snap install asana-exporterFrom source:sudo apt install python3-pip
pip install -r requirements.txtUsageThe first action is to extract information from Asana using the API. To do this you will need to generate a Personal Access Token from the web UI - seehttps://developers.asana.com/docs/personal-access-tokenfor instructions on how to do this.Once you have a token, run this tool as follows to extract data. A team name and workspace are required (seehttps://developers.asana.com/docs/workspaces- this is usually your organisation name). Projects are extracted in the context of a team. You can extract multiple teams' projects into the same archive by running the tool multiple times with different teams.If you want to start by getting a list of available teams you can do:asana-exporter --token TOKEN --workspace WORKSPACE --export-path EXPORT_PATH --list-teamsNow you can choose a team and extract all of its projects:asana-exporter --token TOKEN --workspace WORKSPACE --export-path EXPORT_PATH --team TEAMIf you do not want all projects you can filter project names:asana-exporter --token TOKEN --workspace WORKSPACE --export-path EXPORT_PATH --team TEAM --project-filter "My\s+.+roject"Once complete, your data will be under EXPORT_PATH and you can query it e.g.List all teams found:asana-exporter --export-path EXPORT_PATH --list-teamsList all extracted projects for a given team:asana-exporter --token TOKEN --workspace WORKSPACE --export-path EXPORT_PATH --team "My Team" --list-projectsList all extracted tasks for a given project:asana-exporter --token TOKEN --workspace WORKSPACE --export-path EXPORT_PATH --team "My Team" --list-project-tasks "My Project"
Package: asana-goals
vidstreamUnder construction! Not ready for use yet! Currently experimenting and planning!Developed by Florian Dedov from NeuralNine (c) 2020Examples of How To Use (Buggy Alpha Version)Creating A ServerfromvidstreamimportStreamingServerserver=StreamingServer('127.0.0.1',9999)server.start_server()# Other Code# When You Are Doneserver.stop_server()Creating A ClientfromvidstreamimportCameraClientfromvidstreamimportVideoClientfromvidstreamimportScreenShareClient# Choose Oneclient1=CameraClient('127.0.0.1',9999)client2=VideoClient('127.0.0.1',9999,'video.mp4')client3=ScreenShareClient('127.0.0.1',9999)client1.start_stream()client2.start_stream()client3.start_stream()Check out:https://www.youtube.com/c/NeuralNine
Package: asananas
Asananas helps you with your project management inAsana. It assumes that a single Asana project, e.g. called "Company Workstreams", is used for high-level project planning of your company or your team. Different projects/workstreams are reflected in Asana as tasks in the dedicated Asana project. These Asana tasks can be assigned to different people and have a start and a due date.
Asananas helps you to visualize the allocation of your team members over time. Additionally, it helps you to sync your Asana tasks withLinear, a project management tool for software development teams. This is particularly useful for projects that are more technical in nature.DisclaimerThis package is a PoC that has been developed within a few hours. Bit and pieces of the code are unclean and very hacky. For a more detailed list of the limitations see the section "Limitations & Improvements" below.Additionally it is worth mentioning that about 75% of all the code (including the markdown text in the dashboard) has been suggested byGitHub Copilotand the logo has been created by the astable-diffusionmodel using the prompt"A cartoon of a pineapple wearing sunglasses while flying through the sky". 🙂Quick StartTo start quickly simply install the package via pip and launch the built-in dashboard. The dashboard explains how to set up the link with Asana and Linear.pip install asananas
asananas-dashboardYou can also use the low-level function of the package, e.g.fromasananas.asana_connectorimportAsanaConnectorfromasananas.allocation_managementimportextract_allocation_data,visualize_allocation_by_weekasana_connector=AsanaConnector(access_token="foo")workspaces=asana_connector.get_workspaces()workspace_id=workspaces[0]["gid"]projects=asana_connector.get_projects_for_workspace(workspace_id)project_id=projects[0]["gid"]df_asana_tasks=asana_connector.get_all_tasks_for_project(project_id)df_allocation_data,_,_=extract_allocation_data(df_asana_tasks,n_workdays_per_week=5)fig=visualize_allocation_by_week(df_allocation_data)fig.write_html("my_allocation_plot.html")Limitations & ImprovementsThe package is not very well tested, in particular there is not a single unit test.The package does not contain proper error management, e.g. there are no checks whether the allocation field actually exists in the Asana tasks. In general, the dashboard is not prepared for wrong user interaction and does not really help solving the issue.The code is hardly documented.
Package: asana-typed
Type Python Objects to complementpython-asanaInspirationIn a age of IDEs with code completion, I found python-asana lacking in
their implementation of data structures regarding the api. This module
is a WIP and does not implement all known objects as of yet.Implemented API Objects:- [ ] Attachments- [ ] Custom Field Settings- [ ] Custom Fields- [ ] Event- [ ] Organization Export- [ ] Project Membership- [x] Project Statue- [x] Project- [ ] Section- [ ] Story- [x] Tag- [x] Task- [ ] Teams- [x] User- [ ] Webhook- [x] WorkSpaceAcknowledgementsThanks to the creators over atquicktypeI was able to save some time from having to type for each object or make
a custom generator that uses Asana’s API Meta Data. Their API Meta Data
doesn’t cover all types for list, hence why i went this route.
Package: asaniczka
AsaniczkaThe Asaniczka module provides quick functions to get up and running with a scraper.This documentation is outdated. It will be updated in the next major updateAvailable Functions:setup_logger(): Set up a logger and return the logger instance.save_temp_file(): Saves the given content to a temporary file in the specified temp folder.format_error(): Removes newlines from the given error string.get_request(): Makes a basic HTTP GET request to the given URL.create_dir(): Creates a new directory.steal_cookies(): Steals the cookies from a given domain for SSRFAvailable Classes:ProjectSetup: A class that sets up project folders and provides access to their paths.InstallationTo install Asaniczka, you can use pip:pip install asaniczkaNote:Remember to runplaywright installon cmd/terminal after installation to install playwright browsersUsageimportasaniczkaimportasaniczka.db_toolsasdbtimportasaniczka.scrape_helperasash# Create project foldersproject=asaniczka.ProjectSetup("MyProject")# Set up a loggerlogger=asaniczka.setup_logger(project.log_file_path)# Save content to a temporary fileasaniczka.save_temp_file(content,extension='txt')# Format an errorformatted_error=asaniczka.format_error(error)# Make a GET requestresponse=asaniczka.get_request(url)# Create a new directorymy_dir=asaniczka.create_dir(os.path.join(project.data_folder,'my_data'))# check the ratelimit of a websiterate_limit=ash.check_ratelimit('https://amazon.com')# load a postgres dbproject.start_supabase_instance()# get all the names of tables in the dbtable_names=dbt.get_sb_table_names(project,make_list=True)# backup supabase postgres dbdbt.backup_sb_db(project)# shutdown databaseproject.stop_supabase_instance()