Saravanan666/pypi-org huggingface dataset:
Package: diagrams_exporters
diagrams-exportersin additional to the design phase, diagrams can aslo be used for analysis and monitoring the current architecture.to do that, we need to export the 'metadata' from other sources, e.g. terraform, aws cli, etc. then generate the diagrams.diagrams-exportersexport the metadata from existing tools, and generate the diagrams.Features:rocket: terraform graphhttps://github.com/hashicorp/learn-terraform-no-code-provisioninghttps://github.com/hashicorp/learn-terraform-provision-eks-clusterhttps://github.com/hashicorp/learn-terraform-multicloud-kubernetes-eks:construction: awscli scandepends on the patterns in diagrams-patterns (e.g. vpc with igw, subnet and nat)UsageInstall the package:pipxinstalldiagrams-exportersterraform graph (only aws supported)Exectute the following command in your terraform workspace, it will generate terraform graph and export to Diagrams.diagrams-exportersterraform# use -d to specify the output directory/filediagrams-exportersterraform-odiagrams-exported
diagrams-exportersterraform-odist/diagrams-exporteddot graph (only terraform/aws supported)If you have existing .dot filediagrams-exportersdot-fexisting.dot
diagrams-exportersdot-fexisting.dot-odiagrams-exported
diagrams-exportersdot-fexisting.dot-odist/diagrams-exportedRoadmapCurrently, thediagrams-patternsand diagrams-exporters are built as 'diagrams'-extensions. But since the diagrams is inactive, introducing new tools is a necessary step, e.g. d2.At that time, thediagrams-patternsshould be a standalone tool, which provide a standard DSL to describe the common patterns in cloud architecture (or other kinds of diagrams). Then, you can translate the DSL to different tools, e.g. diagrams, d2, etc.Thediagrams-exportersplays another role to facilitate with productive tools, e.g. terraform, aws cli, etc. It read the metadata, convert to DSL, then generate the diagrams.A possible structure is:flowchart BT
  subgraph diagram-exporters
    terraform-exporter
    awscli-exporter
    kubectl-exporter
  end

  subgraph diagrams-patterns
    subgraph common-patterns
      c4-pattern
      layer-arch-pattern    
    end

    subgraph cloud-patterns
      aws-pattern
      azure-pattern
    end

    subgraph dsl
      dsl-parser

      dsl-to-diagrams
      dsl-to-d2
      dsl-to-mermaid
    end
  end

  diagrams-patterns --> diagram-exporters
  diagrams --> diagrams-patterns
  d2 --> diagrams-patterns
  plantuml --> diagrams-patterns
  
  graphviz --> diagrams
  graphviz --> d2

  plantumlReferencegraphviz & dothttps://github.com/pydot/pydotd2https://github.com/terrastruct/d2https://github.com/MrBlenny/py-d2read tfstate and generate graphhttps://github.com/cycloidio/inframaphttps://github.com/28mm/blast-radiusread aws cli and generate graphhttps://github.com/Cloud-Architects/cloudiscoveryother terraform interesting toolshttps://github.com/cycloidio/terracosthttps://pypi.org/project/python-hcl2/
Package: diagrams_ext
:warning: This repo is an extension version for diagrams, since the upstream is inactive, this fork will use main/ as the active branch. I rename the project asdiagrams-extto avoid conflict with upstream since0.23.5-alpha4.Main Features:🚀 feature: add cluster icon🚀 feature: support aws group resources, moved todiagrams-patterns🚀 feat: support remote iconHow to use:poertryadddiagrams_ext:warning: CheckREADME_MAIN.mdfor more detailsDiagramsDiagram as Code.Diagrams lets you draw the cloud system architecturein Python code. It was born forprototypinga new system architecture design without any design tools. You can also describe or visualize the existing system architecture as well. Diagrams currently supports main major providers including:AWS,Azure,GCP,Kubernetes,Alibaba Cloud,Oracle Cloudetc... It also supportsOn-Premisenodes,SaaSand majorProgrammingframeworks and languages.Diagram as Codealso allows you totrackthe architecture diagram changes in anyversion controlsystem.NOTE: It does not control any actual cloud resources nor does it generate cloud formation or terraform code. It is just for drawing the cloud system architecture diagrams.ProvidersGetting StartedIt requiresPython 3.7or higher, check your Python version first.It usesGraphvizto render the diagram, so you need toinstall Graphvizto usediagrams. After installing graphviz (or already have it), install thediagrams.macOS users can download the Graphviz viabrew install graphvizif you're usingHomebrew.# using pip (pip3)$pipinstalldiagrams# using pipenv$pipenvinstalldiagrams# using poetry$poetryadddiagramsYou can start withquick start. Check outguidesfor more details, and you can find all available nodes list inhere.ExamplesEvent ProcessingStateful ArchitectureAdvanced Web ServiceYou can find all the examples on theexamplespage.ContributingTo contribute to diagram, check outcontribution guidelines.Let me know if you are using diagrams! I'll add you in showcase page. (I'm working on it!) :)Who uses it?Cloudiscoveryhelps you to analyze resources in your cloud (AWS/GCP/Azure/Alibaba/IBM) account. It allows you to create a diagram of analyzed cloud resource map based on this Diagrams library, so you can draw your existing cloud infrastructure with Cloudiscovery.Airflow Diagramsis an Airflow plugin that aims to easily visualise your Airflow DAGs on service level from providers like AWS, GCP, Azure, etc. via diagrams.Other languagesIf you are familiar with Go, you can usego-diagramsas well.LicenseMIT
Package: diagrams-magic
diagrams-magicThediagrams-magicis an IPython magic that enables callingdiagramswithin IPython kernel to draw graphs with pure texts. The most common use case, however, would be to use this magic within Jupyter Notebook, which integrates the IPython kernel within it.RequirementsdiagramsThe mechanism of this magic is to calldiagramsinstalled on local machine. So please ensure thatdiagramsis accessible on your system or in your virtual environment.If you havenodeandnpminstalled, you may installdiagramswithnpm install -g diagramsA (virtual) display driverdiagrams flowchartanddiagrams sequencestarts an Electron app that requires a display to run. If you are usingWindowsorMacOS, this shouldn't be a problem.However if you are to deploy this magic on a headlessLinuxbackend,diagrams flowchartanddiagrams sequencewill report 'Cannot open display' error.This can be circumvented with a virtual display. We suggest installingxvfbso that our magic will detect the installedxvfb-runcommand and use it. The solution is detailed atElectron's webpage.InstallationFrom PIP:pipinstalldiagrams-magicDevelopment install:gitclonehttps://github.com/chunxy/diagrams-magic.gitcddiagrams-magic
pipinstall-e./UsageAs with usual IPython magic, remember to%load_ext diagrams-magicbefore using this magic.This is a cell magic. In the first line of your cell, type%%diagrams (flowchart|dot|sequence|railroad) [name]to indicate which driver you are to use and the name of image file. If nonameis provided, no image file will be generated in your current directory (but the image will still be available in the output cell). In the rest of this cell, simply type in the graph descriptions.See thedemo filefor reference.Known Issue(s)Invalid asm.js: Function definition doesn't match useThere might be error like above when you are using thedotdriver. This is a known issue caused by the upstreamviz.js. Usually the output won't be affected and thus you can ignore it, as long as the red error message won't be too harsh for your eyes.
Package: diagrams-net-automation
Diagrams.net Automation[[TOC]]UsageUsage:diagrams-net-automation[OPTIONS]COMMAND[ARGS]...:return:

Options:--versionVersion--helpShowthismessageandexit.

Commands:convert-diagramsConvertsDraw.iofilestoPDFandPNG.Convert DiagramsUsage:diagrams-net-automationconvert-diagrams[OPTIONS]ConvertsDraw.iofilestoPDFandPNG.

Options:-d,--input-directoryDIRECTORYInputdirectorywiththediagrams.netfiles.[default:.]-o,--output-directoryDIRECTORYTheoutputdirectorywherethePDF,JPG,orPNGfilesshouldbestored.[default:dist]-D,--draw-ioFILEThediagrams.netexecutable.[default:/Applications/draw.io.app/Contents/MacOS/draw.io]-w,--widthINTEGERIfawidthispassed,wewillgenerateaPNGand/orJPGwiththiswidth.-X,--include-xmlConvertalso.xmlfiles,notonly.drawiofiles.-P,--generate-pngGeneratePNGfiles.-J,--generate-jpgGenerateJPGfiles.-S,--skip-pdf-generationIfthisflagisset,wewillnotgeneratePDFfiles.-I,--ignore-cacheIfthisflagispassed,wewillignoreanythinginthecurrentcachefile.Intheend,wewilloverwritethecurrentcachefile.
Package: diagrams_patterns
diagrams-patternsdiagrams should only used for managing the basic shapes of the cloud componentsbut there are standard patterns usually used in cloud architecture, we don't need to draw them from scratche.g. VPC with public/private subnets, NAT gateway, etc.diagrams-patternsis a collection of patterns for diagrams that can be reused in different projects.Featuresaws vpc, subnets with stylesaws overlapping az on subnetscalculate the position based on the number of az and subnetsstore and reuse the calculated positionaws grid subnets with azuse 'anchor', a hidden node, to align the subnetsnot really workdsl investigatedsl 2 py 2 diagrams (refer to d2)RoadmapCurrently, thediagrams-patternsand diagrams-exporters are built as 'diagrams'-extensions. But since the diagrams is inactive, introducing new tools is a necessary step, e.g. d2.At that time, thediagrams-patternsshould be a standalone tool, which provide a standard DSL to describe the common patterns in cloud architecture (or other kinds of diagrams). Then, you can translate the DSL to different tools, e.g. diagrams, d2, etc.Thediagrams-exportersplays another role to facilitate with productive tools, e.g. terraform, aws cli, etc. It read the metadata, convert to DSL, then generate the diagrams.A possible structure is:flowchart BT
  subgraph diagram-exporters
    terraform-exporter
    awscli-exporter
    kubectl-exporter
  end

  subgraph diagrams-patterns
    subgraph common-patterns
      c4-pattern
      layer-arch-pattern    
    end

    subgraph cloud-patterns
      aws-pattern
      azure-pattern
    end

    subgraph dsl
      dsl-parser

      dsl-to-diagrams
      dsl-to-d2
      dsl-to-mermaid
    end
  end

  diagrams-patterns --> diagram-exporters
  diagrams --> diagrams-patterns
  d2 --> diagrams-patterns
  plantuml --> diagrams-patterns
  
  graphviz --> diagrams
  graphviz --> d2

  plantumlReferencegraphviz & dothttps://github.com/pydot/pydotd2https://github.com/terrastruct/d2https://github.com/MrBlenny/py-d2read tfstate and generate graphhttps://github.com/cycloidio/inframaphttps://github.com/28mm/blast-radiusread aws cli and generate graphhttps://github.com/Cloud-Architects/cloudiscoveryother terraform interesting toolshttps://github.com/cycloidio/terracosthttps://pypi.org/project/python-hcl2/
Package: diagraph
DiagraphDiagraph represents Large Language Model (LLM) interactions as a graph, which makes it easy to build, edit, and re-execute a chain of structured dialogues.Key features:Cache & Replay:Rerun starting from specific interactions. Save time and money.Edits:Edit interactions - prompts, results, functions - on the fly.Dependencies:Specify a function's dependencies as parameters for clean, readable, refactorable code.Functions:Use any LLM or set of tools you want. Diagraph operates on top of plain Python functions.Visualizations:Get a straightforward view of your graph with a built-in Jupyter visualization tool.Concurrency:Diagraph takes care of deciding when to run your functions so that all dependencies are satisfied. Get concurrency for free.RequirementsPython 3.10+InstallationpipinstalldiagraphQuickstartfromdiagraphimportDiagraph,Depends,prompt,llmopenai.api_key='sk-<OPENAI_TOKEN>'@promptdeftell_me_a_joke():return'Computer! Tell me a joke about tomatoes.'@promptdefexplanation(joke:str=Depends(tell_me_a_joke))->str:returnf'Explain why the joke "{joke}" is funny.'dg=Diagraph(explanation).run()print(dg.result)# 'The joke is a play on words and concepts. There are two main ideas that make it humorous...dgUsageSee the usage guide.LicenseMIT
Package: diagtomodel
Implementations of Artificial Neural Networks Based on their DiagramsAuthorsMilad Sadeghi DM -EverlookNeverSee@GitHubList ofall contributorsto this repositoryImplemented ModelsPLNet- Convolutional Neural Network with Parallel LayersMLANet- Convolutional Neural Network with Multiple Layer AdditionsLeNet-5- Gradient-Based Learning Applied to Document RecognitionAlexNet- ImageNet Classification with Deep Convolutional
Neural NetworksVGG-16- Very Deep Convolutional Networks For Large Scale Image RecognitionInception-v1- Going Deeper With ConvolutionsXception- Deep Learning with Depthwise Separable ConvolutionsLicenseThis project licensed under the MIT License - see theLICENSEfile for more details.
Package: diagv
Diagonal Directed Graph VisualizationFunctionality to print directed graphs as ASCII art.+-A-+-----------+
|   +-B         |
|       +-C-----|-------+
|       |     D-+       |
|       |       +-E-----|-------+
|       |       +-----F |       |
+-------|---------------+-G     |
        |                   +-H |
        +-------------------+---+-I
Package: diakaplug
DiakaPlug LibraryThe DiakaPlug is a Python library that provides a set of tools for interacting with the Diaka donation service. It allows you to send test notifications and parse incoming notifications from Diaka streams. This README.md file offers an overview of the library and its main features.Translation ofREADME.md into Ukrainian.Table of ContentsInstallationUsageSynchronous Diaka ClassAsynchronous AsyncDiaka ClassLicenseInstallationTo use the Diakaplug library, you'll need to install it via pip:pipinstalldiakaplugUsageSynchronous Diaka ClassTheDiakaclass provides synchronous methods for interacting with the Diaka service.InitializationfromdiakaplugimportDiaka# Initialize the Diaka class with a Diaka notification URLdiaka=Diaka("https://c.diaka.ua/notification_url")Sending a Test Notification# Send a test notification with optional parametersstatus_code=diaka.send_test_notification(target="TargetName",amount=54,name="DiakaPlug",message="Hi from Python",source="SourceName",show="Show",additional="AdditionalInfo")Parsing a Notification# Parse a notification using a transaction ID and hashnotification_data=diaka.parse_notification(transaction_id=123,hash="notification_hash")Get Last Donations# Get last donations with optional parameterslast_donations=diaka.get_last_donations(limit=10,test=2)Get Largest Donations# Get largest donations with optional parameterslargest_donations=diaka.get_largest_donations(offset=86400,limit=10,test=2)Get Amount of Donations# Get amount of donations with optional parametersamount_of_donations=diaka.get_amount_of_donations(offset=86400,test=2)Establishing a Session# Establish a session with the SSE server and yield parsed notificationsfornotificationindiaka.session():print(notification)Asynchronous AsyncDiaka ClassTheAsyncDiakaclass provides asynchronous methods for interacting with the Diaka service.InitializationfromdiakaplugimportAsyncDiaka# Initialize the AsyncDiaka class with a Diaka notification URLasync_diaka=AsyncDiaka("https://c.diaka.ua/notification_url")Sending a Test Notification# Send a test notification with optional parametersstatus_code=awaitasync_diaka.send_test_notification(target="TargetName",amount=54,name="DiakaPlug",message="Hi from Python",source="SourceName",show="ShowName",additional="AdditionalInfo")Parsing a Notification# Parse a notification using a transaction ID and hashnotification_data=awaitasync_diaka.parse_notification(transaction_id=123,hash="notification_hash")Get Last Donations# Get last donations with optional parameterslast_donations=diaka.get_last_donations(limit=10,test=2)Get Largest Donations# Get largest donations with optional parameterslargest_donations=diaka.get_largest_donations(offset=86400,limit=10,test=2)Get Amount of Donations# Get amount of donations with optional parametersamount_of_donations=diaka.get_amount_of_donations(offset=86400,test=2)Establishing a Session# Establish a session with the SSE server and yield parsed notificationsasyncfornotificationinasync_diaka.session():print(notification)LicenseThis project is licensed under theMIT License.
Package: dialectal-arabic-tools
Dialectal Arabic ToolsDialectal Arabic Tools comprises the different modules developed in Qatar Computing Research Institute (QCRI) developed by the ALT team to handle Dialectal Arabic Segmentation, POS tagging, daicrtization and moreFeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-09-20)First release on PyPI.
Package: dialectic
DialecticMathematical logic implementation using python.Installpip install dialecticUsagefromdialecticimportAtomic# Atomic objectsa=Atomic('a')b=Atomic('b')# Invertinvert=~a# Conjunctionconjunction=(a&b)# Disjunctiondisjunction=(a|b)# Implicationimplication=(a>b)# Equality (iff)equality=(a==b)# Validation with given sentence setimplication.validate({a,b})# Parsing a sentence listfromdialecticimportparse_sentencesparsed_set=parse_sentences([implication,a])# InferencefromdialecticimportInferenceis_valid=Inference((a>b),[b]).is_valid_argument()is_tautology=Inference((a|~a)).is_tautology()is_contradictory=Inference((a&~a)).is_contradictory()is_contingent=Inference((a&b)).is_contingent()
Package: dialex
Python Client for HyperLab Dialex APIInstall$pipinstall-UdialexQuick Startfromdialeximportdialexdial=dialex.Dialex('apiKey')DevelopingClone using git:git clonegit@github.com:HyperLab-Solutions-Sdn-Bhd/dialex-sdk-python.gitInstall pipenv:pip install-UpipenvInstall dependencies:pipenv install--devRun tests:python setup.py test
Package: dialga
Dialga: call function in the futureIf you ever have the need to run a Python at a specific time, or periodically. This might come handy.importasynciofromdatetimeimportdatetimefromdialgaimportcall_at,call_afterloop=asyncio.get_event_loop()# This function will be call at 11:05 everyday as long that the loop is still running@call_at(loop=loop,repeated=True,hour=11,minute=5)defshow_actual_runtime(name:str):print(f"Actual time of{name}:",datetime.strftime(datetime.now(),"%y-%m-%d%H:%M:%S"))# This function will be call after every 10 minutes as long as the loop is still running@call_after(loop=loop,repeated=True,minutes=10)defshow_current_runtime(name:str):print(f"Current time of{name}:",datetime.strftime(datetime.now(),"%y-%m-%d%H:%M:%S"))show_actual_runtime(name="call_now")show_current_runtime(name="call_now")show_actual_runtime.promise(name="call_at")show_current_runtime.promis(name="call_after")loop.run_forever()Another way to run an application:fromtypingimport*fromdatetimeimportdatetimefromdialgaimportScheduler,call_at,call_afterscheduler=Scheduler()now=datetime.now()@scheduler.schedule(call_at,hour=now.hour,minute=now.minute+5)deffive_minute_from_now():print("Five minute from start")print("Start time:",datetime.strftime(now,"%y-%m-%d%H:%M:%S"))print("End time:",datetime.strftime(datetime.now(),"%y-%m-%d%H:%M:%S"))@scheduler.schedule(call_after,minutes=1)defone_minute_from_now():print("One minute from start")print("Start time:",datetime.strftime(now,"%y-%m-%d%H:%M:%S"))print("End time:",datetime.strftime(datetime.now(),"%y-%m-%d%H:%M:%S"))scheduler.run()Or another way:Call at:fromdatetimeimportdatetimefromdialgaimportschedulable@schedulabledefprint_message(msg:str):now=datetime.now()print(now,msg)returnnowprint(datetime.now())task=print_message.at(hour=17,minute=32).call('17:32')print_message('now')print(task.get_result())Call after:fromdatetimeimportdatetimefromdialgaimportschedulable@schedulabledefprint_message(msg:str):now=datetime.now()print(now,msg)returnnowprint(datetime.now())task=print_message.after(seconds=1).call('1 second later')print_message('now')print(task.get_result())Thedialgamodule is built upon two main function.call_after: call the function after some timedefcall_after(loop:asyncio.AbstractEventLoop=None,repeated:bool=False,# Is the function called repeatly**timedetail# Is the parameters of datetime.timedelta):...call_at: call the function at specified time match the configurationdefcall_at(loop:asyncio.AbstractEventLoop=None,repeated:bool=False,# Is the function called repeatly**timedetail# Will be explained below):...timedetailincludes these parameters:year,month,week,weekday,day,hour,minute,second, all with same format.None: ignoreint: specific value(start, end, [step]): value in range(start, end, [step])[int, ...]: value in listNote:atuplein list is still considered as range and will be expanded.weekhas value from 1 -> 5weekdayhas value from 1 -> 7, monday -> sunday, mon -> sun, starts from mondayhourhas value from 0 -> 23minuteandsecondhav value from 0 -> 59If no suitable time found, the function won't be called
Package: dial-gui
BuildCoverageQualityVersionPythonDocsLicenseDescriptiondial-appis a GUI fordial-core, written withPythonandPySide2.ImagesThis is awork in progressproject. Expect most of the interface to change over time.DocumentationThis project's documentation lives atreadthedocs.io.LicenseAll code is provided under theGPL-3.0license. SeeLICENSEfor more details.AuthorsDavid Afonso (davafons):GithubTwitter
Package: dialite
Dialite is a pure Python package to show dialogs. It is lightweight,
cross-platform, and has no dependencies. It provides a handful of
functions, each a verb, that can be used toinform(),warn()orfail()the user, or toask_ok(),ask_retry()orask_yesno().Dialite can show dialogs on Window, OS X and Linux, and falls back to
a terminal interface if dialogs are unavailable (e.g. if not supported
by the platform, or for SSH connections).On Windows, it uses Windows Script Host (cscript.exe). On OS X it uses
osascript to show a dialog from the frontmost application. On Linux it
uses Zenity.
Package: dialobot
Dialobot: Opensource Multilingual Chatbot Framework... Work in process ...Citation@misc{dialobot,
  author       = {Ko, Hyunwoong and Kim, Sunghyun and Na, Youngyun and Lee, Sangji and 
                  Yang, Sooyoung and Lee, Yoonjae and Jung, Hwansuk},
  title        = {Dialobot: Opensource Multilingual Chatbot Framework},
  howpublished = {\url{https://github.com/dialobot/dialobot}},
  year         = {2021},
}ContributorHyunwoong Ko, Sunghyun Kim,Youngyun Na,Sangji Lee, Sooyoung Yang,Yoonjae LeeandHwanseok JeongLicenseDialobot project is licensed under the terms of the Apache License 2.0.Copyright 2021Dialobot. All Rights Reserved.
Package: dialog-api
Dialog API SchemaDialog gRPC API Schema.API documentationUsageProjectLinkJava Bot SDKhttps://github.com/dialogs/java-bot-sdkJS Bot SDKhttps://github.com/dialogs/js-bot-sdkPythonhttps://github.com/dialogs/python-bot-sdkGo APIhttps://github.com/dialogs/golang-dialog-apiGo (Example)https://github.com/dialogs/stressbotLicenseApache-2.0
Package: dialog-bot-sdk
Dialog Python Bot SDKPython Bot SDK forDialogmessenger.Full documentation is availablehere.Usagefromdialog_bot_sdk.botimportDialogBotimportgrpcimportosdefon_msg(params):bot.messaging.send_message(params.peer,'Reply to : '+str(params.message.text_message.text))if__name__=='__main__':bot=DialogBot.get_secure_bot(os.environ.get('BOT_ENDPOINT'),# bot endpoint from environmentgrpc.ssl_channel_credentials(),# SSL credentials (empty by default!)os.environ.get('BOT_TOKEN')# bot token from environment)bot.messaging.on_message_async(on_msg)
Package: dialoget
dialogetpy.dialoget.comTable of ContentsInstallationLicenseInstallationpip install dialogetLicensedialogetis distributed under the terms of theMITlicense.VersionhatchversionPublishAfter the build completes successfully, upload the new distribution files to the Python Package Index (PyPI).
Upload your package to PyPI usingtwinetwineuploaddist/*CONTRIBUTIONIntroduction - Hatchhatchnewdialoget
hatchversionminor
python-mbuilddialoget
├── src
│   └── dialoget
│       ├── __about__.py
│       └── __init__.py
├── tests
│   └── __init__.py
├── LICENSE.txt
├── README.md
└── pyproject.toml