Saravanan666/pypi-org huggingface dataset:
Package: dome9cli
Dome9 CLIThis Command Line Interface (CLI) is a set of commands used to create and manage Dome9 resources.
Developed to facilitate the daily use and help to work in agile methodologies (continuous-integration)
This package consumes calls through the Dome9 Python SDK so it contains the same methods.This CLI helps to work on Dome9 from our different agile services like Jenkins, Github or Travis, creating new rulesets, running
assessments or listing our protected assets.To install:pip install --user dome9cli
dome9cli --helpCommandsUsage: dome9cli <command> <arguments>create_rulesetDescription: Create a compliance rulesetCommand:.\dome9cli.py create_ruleset jsonFiledelete_exclusionDescription: Delete a specific exclusionCommand:.\dome9cli.py delete_exclusion id=0delete_remediationDescription: Delete a specific remediationCommand:.\dome9cli.py delete_remediation id=0delete_rulesetDescription: Delete a specific rulesetCommand:.\dome9cli.py delete_ruleset id=0generate_rulesetDescription: Generate a ruleset templateCommand:.\dome9cli.py generate_ruleset name=minimum, cloud=aws, rulesFile='./rules.json', desc='My description'get_cloud_accountDescription: Get a specific cloud accountCommand:.\dome9cli.py get_cloud_account id=0get_rulesetDescription: Get a specific compliance rulesetCommand:.\dome9cli.py get_ruleset id=0list_aws_accountsDescription: List AWS Cloud accountsCommand:.\dome9cli.py list_aws_accountslist_azure_accountsDescription: List Azure Cloud accountsCommand:.\dome9cli.py list_azure_accountslist_cloud_accountsDescription: List all cloud accounts (AWS, Azure, GCP and Kubernetes)Command:.\dome9cli.py list_cloud_accountslist_exclusionsDescription: List all exclusionsCommand:.\dome9cli.py list_exclusionslist_google_accountsDescription: List Google Cloud accountsCommand:.\dome9cli.py list_google_accountslist_kubernetes_accountsDescription: List Kubernetes accountsCommand:.\dome9cli.py list_kubernetes_accountslist_remediationsDescription: List all remediationsCommand:.\dome9cli.py list_remediationslist_rulesetsDescription: List compliance rulesetsCommand:.\dome9cli.py list_rulesetsrun_assessmentDescription: Run assessment and get report URLCommand:.\dome9cli.py run_assessment rulesetId=0, cloudAccountId=0000-0000-0000-0000
Package: domeneshop
Python 3 library for working with theDomeneshopAPI.Note:This library doesnotsupport Python 2.x.Installationpip3 install domeneshopCredentialsUse of this plugin requires Domeneshop API credentials.See theDomeneshop APIdocumentation for more information.ExamplesListing DNS records for the first domain in your account:fromdomeneshopimportClientif__name__=="__main__":client=Client("<token>","<secret>")domains=client.get_domains()domain=domains[0]print("DNS records for{0}:".format(domain["domain"]))forrecordinclient.get_records(domain["id"]):print(record["id"],record["host"],record["type"],record["data"])More examples can be found in theexamplesfolder.DocumentationComing soon.In the meantime, see the docstrings fordomeneshop.client.Client.
Package: domeneshop-bots
Domeneshop.no DNS bootBot for users of domeneshop.no. Keep your dns records updated with public ip for your self hosted sites and services.Only IP will be updated by the bot; record type, ttl and hostname will remain the sameBuilt upondomeneshop.no's own python API.Usinghttps://api.ipify.orgto get the public IPInstallationpip3 install domeneshop-botsUsageSee the documentation athttps://api.domeneshop.no/docs/for help on how to acquire your API credentials.1. Fill inn API credentials and domains to track{"api":{"token":"<your-domeneshop.no-token>","secret":"<your-domeneshop.no-secret>"},"track":[{"domain":"yourdomainA.com","hosts":["subdomainA","subdomainB","subdomainC"]},{"domain":"yourdomainB.com","hosts":["@","www"]},{"domain":"yourdomainC.com","hosts":["@","www","subdomain"]}]}Hostname defaults"@" ->https://domain.com: domeneshop.no uses '@' to indicate root domain"www" ->https://www.domain.com: in case you have added a 'www' dns to root domain as well"subdomain" ->https://subdomain.domain.com: only subdomain should be specified2. Fire the bot up, example loading json from fileimportjsonfromdomeneshop_botsimportDNSBotif__name__=="__main__":withopen("./config.json",'r')asfile:config=json.loads(file.read())bot=DNSBot(config)bot.start()3. Set up a cron job, and you are done!Or not. In any case you know what to do!AuthorsErik Larsen-GrizzlyfrogLicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsAcknowledgmentsThanks todomeneshop.nofor creating an API!!
Package: domestic-reader
Domestic Reader, cross platform, free and free is a RSS/Atom reader.
PyQt5(Qt5), Python3.4, BeautifulSoup4, feedparser and sqlite3 was created with.0.5.1.5 -> Bug fix.0.5.1.1 -> add domestic downloader for podcast - Podcast indirmek için indirici eklendi.0.4.4.6 - Bug fix.Domestic RSS Okuyucu, Python kullanılarak yazılmış bir uygulamadır. Python’un 3.4 sürümünü kullanır.
Arayüz kütüphanesi olarak PyQt5 ve rss parse etmek için feedparser kullanır.Uygulamayı çalıştırabilmek için Python3.4 üzerine PyQt5, BeautifulSoup4 ve feedparser modülünü kurmalısınız.0.4.3.7 sürümüyle podcast desteği sağlanmıştır.
Package: domestic-violence-news-classifer-spanish
domestic-violence-news-classifer-spanishTo install itpip install domestic-violence-news-classifer-spanishyou will also need tensorflow and keras to run this package sopip install tensorflow kerasImport the packagefrom domestic_violence_news_classifer_spanish import domestic_violence_classifierwe will use the following text to test it:text_new = "Una mujer de 39 años murió en las últimas horas en un hospital de Santa Fe luego de agonizar desde el 11 de marzo, cuando su hijo la roció con nafta y la prendió fuego, en la localidad de Bella Italia, lindante con Rafaela, informaron hoy fuentes policiales. Los voceros identificaron a la víctima como Romina Esther Leiva (39), en tanto el acusado del ataque es su hijo Miguel Ángel Beresvilj (25), quien está detenido a la espera del juicio. Leiva murió mientras era asistida en la sala de terapia intensiva del hospital José María Cullen de la capital santafesina, luego de sufrir graves quemaduras en el 80 por ciento de su cuerpo que le afectaron el rostro, tórax, brazos y la pierna izquierda. La mujer resultó quemada en el marco de un violento episodio en su casa, situada en calle Córdoba al 100, de Bella Italia, localidad ubicada unos 95 kilómetros al oeste de la ciudad de Santa Fe. Luego del ataque, Beresvilj escapó en su motocicleta y horas después fue atrapado por la policía en la localidad de Frontera, en el límite con la provincia de Córdoba. En el domicilio donde ocurrió la agresión la Policía de Investigaciones secuestró dos bidones de cinco litros con restos de nafta. La versión del muchacho ante la Justicia es que su intención era quemar el automóvil de la pareja de su madre, con quien mantenía una mala relación, y que su madre se interpuso y resultó quemada por accidente. La fiscal de la Unidad de Violencia de Género, Familiar y Sexual del Ministerio Público de la Acusación (MPA), Ángela Capitanio, imputó a Beresvilj por el delito de ?homicidio agravado por el vínculo y por mediar violencia de género, en grado de tentativa, aunque ahora cambiará de figura penal ante la muerte de la mujer. El acusado se encuentra detenido con prisión preventiva sin plazos por orden del juez Osvaldo Carlos. Voceros judiciales indicaron que en la audiencia donde se fijó la prisión preventiva, el acusado dijo que jamás tuvo la intención de lastimar a su madre y que solo quería arruinarle el auto a (Roberto) Mansilla, el esposo de Leiva. Romina Leiva tenía, además de Beresvilj, cuatro hijos, dos mellizos de 13 años y otros dos de 9, producto de una relación anterior."run the classifier:classifier = domestic_violence_classifier.DomesticViolenceClassifier()
print(classifier.domestic_violence_subject_probability(text_new))you will see that it outputs0.9789301
Package: dometl
DOMETL (Python ETL Tool)Dometl is a Python ETL package.ProcessInit - Initializes the databasedometl -t initStage - Moves files into staging tablesdometl -t stageLive - Runs transformations to move data from staging to live tablesdometl -t liveTest - Runs very simple tests on the datadometl -t testHow to Install & Run the Package?Run the initialization stepdometl -t init -cp dometl_config
# if you don't install the package
# python -c "from dometl import run_dometl; run_dometl()" -t init -cp dometl_configRun the staging stepdometl -t stage -ep datasets\\game_data\\daily\\20221105_g.csv -tb ST_GAME -cp dometl_config
# if you don't install the package
# python -c "from dometl import run_dometl; run_dometl()" -t stage -ep datasets\\game_data\\daily\\20221105_g.csv -tb st_game -cp dometl_config
# python -c "from dometl import run_dometl; run_dometl()" -t stage -ep datasets\\game_data\\seasons -tb st_game -cp dometl_configRun the live stepdometl -t live -tb game -cp dometl_config
# if you don't install the package
# python -c "from dometl import run_dometl; run_dometl()" -t live -tb game -cp dometl_configRun the test stepdometl -t test -tb game -cp dometl_config
# if you don't install the package
# python -c "from dometl import run_dometl; run_dometl()" -t test -tb game -cp dometl_configThe simple testing is made up of testing queries which are placed into the
config.yaml folder like belowtests:
  table_name: ["some_test.sql", "other_test.sql"]Each table can have a set of test queries.
The queries need to be written in a way that they return 0 rows when the
test passes. If the query returns more than 0 rows the test will fail.
As a suggestion the rows that are returned should help find the root
cause of the failure.Configuration Folder\folder
    config.yaml     # structure defined below
    db_create.sql   # custom file which creates and initializes the db
    file1.sql       # custom SQL file
    file2.sql       # custom SQL file
    file3.sql       # custom SQL file
    file4.sql       # custom SQL file
    file5.sql       # custom SQL fileStructure for config.yamlcredentials_path: "path/to/creds.yaml"

init_order: [
  "db_create.sql",
  "file1.sql",
  "file2.sql",
]

etl:
  table_name_1: "file3.sql"  
  table_name_2: "file4.sql"  
  table_name_3: "file5.sql"Structure for the creds.yamldb_credentials:
  username: ""
  password: ""
  hostname: ""
  port: ""
  db_name: ""BonusRun a script with psqlpsql -U postgres -h 127.0.0.1 -d DBNAME -f path\path\file_name.sqlCopy CSV into a tablepsql -U postgres -h 127.0.0.1 -d DBNAME -c "COPY table_name FROM '/'some_name.csv' WITH (FORMAT csv)"
Package: domgen
DomgenDomgen is a library which can be used to generate minified HTML, with rich custom component support and material design components as standard.To make a basic page's HTML code:importdompage_model=dom.HTML(dom.Head(dom.Title("My Glorious Test Page"),dom.ExternalResourceLink(rel="stylesheet",href="assets/style.css")),dom.Body(dom.ContentDivision(classes={"red","centre"})("My red and centred content with",dom.Button(onclick="alert('hello user')")("a button"),"in it",)))page_code=page_model.serialise()page_code_readable=page_model.serialise(minify=False)<!-- page_code --><!DOCTYPE html><html><head><title>My Glorious Test Page</title><linkrel="stylesheet"href="assets/style.css"/></head><body><divclass="red centre">My red and centred content with<buttononclick="alert('hello user')">a button</button>in it</div></body></html><!-- page_code_readable --><!DOCTYPE html><html><head><title>My Glorious Test Page</title><linkrel="stylesheet"href="assets/style.css"/></head><body><divclass="red centre">My red and centred content with<buttononclick="alert('hello user')">a button</button>in it</div></body></html>
Package: domible
domibleDomible is a set of Python classes used to generate HTML documents and elements of arbitrary complexity.The basic idea behind domible is fairly simple, HTML elements are represented as Python objects.
When an element object is evaluated, it renders the text of the HTML element.
Objects can contain other element objects which will also evaluate to text when the containing object is evaluated.Through this process of composition and recursive rendering,
domible can be used to programmatically create HTML elements
of arbitrary complexity directly in your Python code.Go to theDomible Documentationfor details and examples.
Package: domicolor
DomicolorFast dominant color extraction libraryGitHub repo:https://github.com/DmitriyValetov/domicolor.gitDocumentation:https://domicolor.readthedocs.ioFree software: MITFeaturesTODOQuickstartTODOCreditsThis package was created withCookiecutterand thefedejaure/cookiecutter-modern-pypackageproject template.
Package: dominantcolor
dominant-color 🔖Fast & minimal python module to compute the dominant color of an image, written in Rust.UsagePre-compiled binaries areavailable for Linuxusing pip :pip install dominantcolorAlternatively, you can download wheel directly fromreleases, or build it yourself.This module iswritten in Rust, so it's faster than a pure-python module. Usage is very intuitive :fromdominantcolorimportget_dominant_color# Let's open an image as bytes object.# This is just for the example, you can use any bytes object that# correspond to a valid image format (https://crates.io/crates/image#supported-image-formats).img=open("image.png","rb").read()# Now we call the function to compute the dominant colorcolor=get_dominant_color(img)# The color is returned as an int, so we convert it to hex to make# it more readable.print(hex(color))If image decoding failed, andominantcolor.DecodingErrorexception is raised.Internally, the module compute the HSL value of each pixel (max. 50k) and classifies each pixel using its hue.
The average of the biggest group of pixels is returned.Build-it yourselfBefore you start, ensureRust is installedon your computer.$ # Clone the repository
$ git clone https://github.com/baptiste0928/dominant-color.git & cd dominant-color
Cloning into 'dominant-color'...
...

$ # Install maturin (build tool)
$ pip install maturin
...

$ # Build python package
$ maturin build --release
...
📦 Built wheel for CPython 3.8 to ...Python package (as wheel) can be found atdominant-color/target/wheels/.
It can be installed for any project withpip install dominantcolor[...].whl.ContributingThis is my first real project in Rust, I will be happy to receive contributions to improve it! 🙌
Feel free to open an issue or a PR if you want to contribute.
Package: dominant_color
Just a demo of different dominant color extraction algorithmsCurrently implemented:kmeansmedian cut quantizationUsageusage: image_palette.py [-h] image {kmeans,mediancut} ...

Test different color extraction algorithms.

positional arguments:
  image
  {kmeans,mediancut}  Algorithms
    kmeans            Using K-Means clustering
    mediancut         Using a median cut quantization

optional arguments:
  -h, --help          show this help message and exit
Package: dominantcolorrecognizer
Dominant Color RecognizerGeneral infoDCR is a Python library created to obtain a specific number of dominant colors from image.
You can define number of colors and color model in which values will be returned.Currently supported color models:Color modelExampleHEX#0040ffRGBrgb(0, 64, 255)InstalationUse the package managerpipto install DCR library:pip install dominantcolorrecognizerUsagefromdominant_color_recognizerimportColorAnalyzer,RGBColorModel,HEXColorModel# RGB color model:print(ColorAnalyzer(RGBColorModel()).get_dominant_colors('test.jpg',3))# You can also use URLprint(ColorAnalyzer(RGBColorModel()).get_dominant_colors('https://swiatkolorow.com.pl/userdata/public/gfx/252817/1ee9698f09e987d3e9a3785167b180b0.jpg',3))# Expected result:# ["(185, 154, 90)", "(52, 40, 24)", "(25, 18, 0)"]# HEX color model:print(ColorAnalyzer(HEXColorModel()).get_dominant_colors('test.jpg',3))# Same as with RGB, you can also use URLprint(ColorAnalyzer(HEXColorModel()).get_dominant_colors('https://swiatkolorow.com.pl/userdata/public/gfx/252817/1ee9698f09e987d3e9a3785167b180b0.jpg',3))# Expected result:# ['#B99A5A', '#342818', '#191200']TestsTo run a tests you have to installpytestand run it with the command:pytestLicenseBittapps
Package: dominantcolors
Dominant ColorsA python module for grabbing dominant colors from an image. It's much faster than colorthief.InstallationpipinstalldominantcolorsUsagefromdominantcolorsimportget_image_dominant_colorsdominant_colors=get_image_dominant_colors(image_path='/path/to/image_path',num_colors=3)PerformanceimporttimefromcolorthiefimportColorThieffromdominantcolorsimportget_image_dominant_colorsimage_path='examples/image.jpg'start_time=time.time()color_thief=ColorThief(image_path)dominant_colors=color_thief.get_palette(3,quality=1)print('colorthief uses%sseconds.'%(time.time()-start_time))#OUTPUT: colorthief uses 1.2148401737213135 seconds.start_time=time.time()dominant_colors=get_image_dominant_colors(image_path,3)print('dominantcolors uses%sseconds.'%(time.time()-start_time))#OUPUT: dominantcolors uses 0.11298108100891113 seconds.ThanksThanks to AI Shack for itsoriginal tutorial.BetterIf you feel anything wrong, feedback or pull requests are welcome.
Package: dominant-image-color
Dominant Image ColorA Python package to extract the dominant color of an image. Given the path to an image file, theget_image_colorfunction returns the hex code of the most frequent color in the image.InstallationTo install the package, simply run the following command:pip install dominant_image_colorUsageHere's an example of how to use theget_image_colorfunction:fromdominant_image_colorimportget_image_colorhex_code=get_image_color("path/to/image.jpg")print(hex_code)DependenciesThese dependencies will be automatically installed when you install the package using pip.PillowContributionsContributions to this package are welcome. If you have any suggestions or bug reports, feel free to open an issue or a pull request on Github.https://github.com/itsmdsameerkhan/dominant-image-color
Package: domini
DominiA small, simple package for generating HTML documents.
The syntax aims to immitate HTML as closely as possible for legibility and ease of use.IndexHTMLAttributesContentClosing tagsEvent attributesJavaScriptJSON type hintsHTMLAttributesAttributeswithouta value are entered aspositional arguments.Attributeswitha value are entered askeyword arguments.To specify attributes that collide with reserved Python keywords,
append an underscore and it will be removed.Pythonfromdomini.htmlimportdialogdialog('open',class_='mydialog')HTML<dialogopenclass='mydialog'>ContentTo add children to an element, there are a few different methods you can use. The content can be either an iterable or a lone element. These elements can be either other tags or plain strings.addadds the children to the current object.>returns a shallow copy of the element with the children added.>>returns a deep copy of the element with the children added.ul(class_='todo')>(li()>'Buy a fruit basket.',li()>('Read ',a(href='https://wikipedia.org/')>'Wikipedia',' to learn more about things you may not have otherwise cared about.',),)Closing tagsA tag is only closed if content is provided. E.g.<p></p>as opposed to<p>. This can be an empty tuple.p()>()For open tags like<br>and<hr>, you simply dobr()andhr().Event attributesEnumerators for event attributes are available atdomini.html.events. You can either useEvent, which contains all different event attributes in one, or use an enumerator for a specific category of events.fromdomini.html.eventsimport(# These are the categories.WindowEvent,FormEvent,KeyboardEvent,MouseEvent,DragEvent,ClipboardEvent,MediaEvent,MiscEvent,)JavaScriptJSON type hintsType hints for the types that are typically used to represent JSON data in Python.# Either of the following JSON types;#   JSONBasic | JSONArray | JSONObjectfromdomini.jsimportJSON# The basic, immutable types;#   None | bool | int | float | str.fromdomini.jsimportJSONBasic# List and dictionary of JSON values#   list[JSON] and dict[str, JSON]fromdomini.jsimportJSONArray,JSONObject
Package: dominicus88
The unofficial Notion API extended with the option to sync your Notion events to Google Calendar.Want to support the development and stay updated?Installationpip install notioncalendarsyncUsageYOUR NOTION TOKEN:Obtain thetoken_v2value by inspecting your browser cookies on a logged-in session on Notion.sofrom notioncalendarsync import Notion

Notion(token_v2="{{ YOUR NOTION TOKEN }}").add_events_to_google_calendar('{{ NOTION COLLECTION URL }}',timezone='Europe/Berlin')
Package: dominion
Kingdom generator for DominionThis script generates recommended "kingdoms" for the card gameDominionand its expansions.
It scrapes theDominion Strategy Wikito find connections between cards and then uses this graph to find sets of cards that should play well together.
In general, I've found the resulting games to be more fun than the randomly generated ones.InstallationThe best way to install is using pip:python-mpipinstalldominionUsageYou can generate a random, well-connected kingdom using all the expansions:dominiongenerateYou can restrict the code to a subset of the expansions:dominiongenerate-sbase-sprosperity-sseasideNote that you can list the supported expansions using:dominionlistsetsYou can start the kingdom off with your favorite cards:dominiongenerate-c"king's court"-cvillageAs above, you can see the available cards using:dominionlistcards# ordominionlistcards-sprosperity-sbaseFinally, for good measure you can get a deterministic result using:dominiongenerate--seed42Updating the graphThe graph of card information and connections is included in this repository, but you can update it using:dominionsetupdata/cards.jsonYou'll need to haveBeautifulSoupandrequestsinstalled, and installingtqdmdoesn't hurt.
Package: dominion-grpc-client
Dominion gRPC clientClient library using the gRPC protocol for theDominionprojectBuild and publishThis section is for the Dominion developers.
If you just want to implement a player or a client library you can stop reading.Pre-requisitesYou needto perform these steps just once.Installpyenvorpyenv-winInstallpoetryCreate a Python 3.8.2 environment$ pyenv install 3.8.2
$ pyenv local
$ poetry init
$ poetry env use 3.8.2
$ poetry installSave the following to ~/.pypirc[distutils]
index-servers=
    pypi
    pypitest

[pypitest]
repository = https://test.pypi.org/legacy/
username = <your user name>

[pypi]
repository = https://pypi.org/legacy/
username = <your user name>Bump the versionThis is important. Whenever you update the package you need to bump the version in setup.py.Using the MakefileJust typemakeand a new package will be built and uploaded to PyPI.You're done 🎉 !!!If you want to do it manually follow the rest of this guide.Building the packageBump the version in setup.pyHere is the command to build the package:(🐙)/dominion-grpc-client-py
$ poetry run python setup.py bdist_wheelThe result is tar-gzipped file in the dist subdirectory:(🐙)/dominion-grpc-client-py
$ ls dist
dominion_grpc_client-0.8.0-py3-none-any.whlPublish the packageNext, we can upload the package using twine to PyPI.(🐙)/dominion-grpc-client-py
$ poetry run twine upload -p ${PYPI_PASSWORD} dist/*.whl

Uploading distributions to https://upload.pypi.org/legacy/
Uploading dominion_grpc_client-0.8.0-py3-none-any.whl
100%|█████████████████████████████| 8.07k/8.07k [00:01<00:00, 4.31kB/s]

View at:
https://pypi.org/project/dominion-grpc-client/0.8/