Saravanan666/pypi-org huggingface dataset:
Package: dorfperfekt
DorfperfektTile placement suggestions for the game Dorfromantik. With an emphasis on perfect tile placement, this software tool enables the player to play indefinitely (and achieve a massive score while doing so).How It WorksThe player inputs a six-character text string representing the next tile to be placed. Each valid placement is then evaluated by the solver according to the following (in order of precedence):How many tiles would be ruined by this placement? Less is better.Of the tiles encountered so far, how many would alternatively fit perfectly at this position? Less is better.Assuming this placement is made, consider each adjacent open position. Of the tiles encountered so far, how many would fit perfectly at that adjacent position? Take the minimum of all adjacent open positions. More is better.The latter two computations will take a significant amount of time as the game progresses and more unique tiles are encountered. A threshold is set by the user so that the solver can be instructed to ignore rarer tiles.Using the ApplicationDorfperfekt displays an overall map of the board. Dark gray tiles are non-ruined placements and light gray tiles are ruined placements. After entering a tile definition string and pressing the solve button, the progress bar will increment and pressing the refresh button will overlay a heatmap of the possible moves onto the board. Green is better, red is worse, and white is neutral (or not yet evaluated).Positions on the map can be clicked on. By clicking on a proposed position for your next placement, a view of the local terrain is generated. The tile to be placed is given a proposed best rotation but the user may use the rotate button to select an alternate rotation.Existing tiles may also be clicked on such that they may be deleted or set as the origin to recenter the map of the board.Tile DefinitionsA tile is defined by a six-character text string where each character represents the edge terrains inclockwiseorder. If all edges of the tile are the same a single character may be used instead. Tile characters are deliberately selected to all be accessible from the left hand.Grass, "g"Forest, "f"Ranch, "r" (ie. wheat/lavender fields)Dwelling, "d" (ie. houses)Water, "w" (ie. rivers)Station, "s"Train, "t"Coast, "c" (ie. lakes)InstallationFrom the command line, install withpip install dorfperfekt. The application can then be run from the command line withdorfperfekt.DevelopmentSetting up the software development environment is easy.poetryinstall
poetryrunpre-commitinstall
Package: dorianUtils
dorianUtils v6.0
This package contains utilities for :comUtils : to standardize the dumping of data from different devices(Modbus,Meteo,OPCUA) with a Streamer, SuperDumper_daily and VisualisationMaster_dailySimulators : to simulate the flow of data from devices(servers) from comUtilsutilsD : convenient plotly,pandas extensions to work fasterversionManagers : to deal with historical data folders and to make them compatible with the daily visualisation master.
Package: dorkify
pypiBannerdorkifydorkify is a Python library for searching Google, easily. dorkify uses requests and BeautifulSoup4 to scrape Google.InstallationTo install, run the following command:python3-mpipinstalldorkifyusageTo get results for a search term, simply use the search function in dorkify. For example, to get results for "Google" in Google, just run the following program:fromdorkifyimportsearchsearch("Google")Additional optionsdorkify supports a few additional options. By default, dorkify returns 10 results. This can be changed. To get a 100 results on Google for example, run the following program.fromdorkifyimportsearchsearch("exploit-db",num_results=100)In addition, you can change the language google searches in. For example, to get results in French run the following program:fromdorkifyimportsearchsearch("exploit-db",lang="en")dorkify.searchdorkify.search(str:term,int:num_results=10,str:lang="en")->listIn the new version of dorkify you can search on a specified site:fromdorkifyimportsearchsearch("site:exploit-db.com "gmail"")
Package: dorkscan
DorkScanAn atypical search engine scanner that scans search engines with dorked queries returning potentially vulnerable URLs.InstallationPyPIpip install dorkscanSourceIf using a virtual environment pass the full directory path to where you cloned DorkScan$gitclonehttps://gitlab.com/unkwn1/dorkscan.git$cddorkscan$pipinstall-edorkscanDorkScan FunctionScrape a search engine result page for (potentially) vulnerably sites.defDorkScan(dorks:list[str],search_engine:str="BING",pages:int=1,console:Console=Console())->list[ScanResults]UsageTo view an example of the function in action run:python3 -m dorkscanfromdorkscanimportDorkScanresults=DorkScan(search_engine:str="BING",pages:int=1,dorks:list=["inurl:.php?","inurl:admin.php"])print(results)ArgsRequired Argsdorks:list[str]-alistofstringdorkqueriesie."inurl:.php?=","inurl:admin.php"search_engine:str-Bing/Ask/Wow.Optional Argspages:int-Numberofsearchengineresultpagestoscan.
silent:bool-Disablestdoutprinting
console:Console-[rich](https://rich.readthedocs.io/en/stable/reference/console.html)consoleobjectforprinting.Return`list[ScanResults]`-listitemforeachpage.Eachpage'sresultdictionarycontains`{"dork":str,"links":list}`
Package: dorm
dormA small SQLite ORM for Python 3. You probably shouldn't use this, but if you want to anyway,pip install dormand look at thetestsfor how to do so.MigrationsDorm has the most basic migration support imaginable:# Generates a schema migration if it detects any changes.
python -m dorm --db=books.db --models=project.models --migrations=project.migrations generate

# Migrates to the latest migration (sorted by filename in the --migrations module).
python -m dorm --db=books.db --models=project.models --migrations=project.migrations migrateExisting migrations are run automatically when callingdorm.setupwith themigrationsargument set. This
is to ensure a good first-run experience and automatic upgrades for end users. Ifmigrationsis not set,
any detected schema changes will be applied automatically to the database.Asynchronous TablesDorm can be used withasyncioby simply subclassingAsyncTableinstead ofTable. Theinsertclass method,
andsaveandrefreshinstance methods become coroutines in that case. Also, thequeryclass method will return
anAsyncQueryinstance, with coroutines forcount,values,get,update, and iteration via__aiter__(i.e.async for obj in MyTable.query()).Migrations and introspection still happen synchronously, since they tend not to happen during times where they would
benefit from being asyncronous.
Package: dormer
dormerdormer is a tool for saving/restoringi3Workspace -> Output mappings. In theory,i3 does it for itselfbut this doesn't seem to work when plugging/unplugging screens. This is intended for setups where you've got a computer linked to multiple screens, but periodically want to unplug it from them temporarily. The canonical use-case is a laptop that's normally tethered to some screens, but that every so often you want to use it elsewhere for a bit before plugging it back in. It's intended for use together with tools likerandrctlwhich stores/restores your screen resolutions.There are two modes: "load" and "save". In "save" mode, dormer stores the current set of workspace -> screen mappings as the canonical wanted config for a given set of screen outputs. Note that we currently pay no attention to the actual monitors, and instead make the assumption that a particular set of output imports implies what they are.In "load", dormer tries to find an existing "save" config and set the workspaces to be on the relevant monitors. If it can't find a config, it says so and quits.
Package: doro
Doro - CLI based pomodoro appDoro is a CLI based pomodoro app and countdown timer application built using python.Install$pipinstalldoro
or$pip3installdoroUsagePomodoroConfigurationConfigure pomodoro session usingdoro config. Config will be stored at~/.doro.yaml$doroconfig

Enteryourfocusduration:[15/20/25/30/45/50/60/90](15):15Enteryourbreakduration:[5/10/15/20/30](5):5Enteryourfontcolor:[magenta/dark_cyan/bright_yellow/bright_white](magenta):bright_yellow# verify config$cat~/.doro.yamlStart Pomodoro$dorostartCountdown timer$dorocountdownMINUTES# 15 minutes counter$dorocountdown15# 90 minutes counter$dorocountdown90DemoTodopytestpytest coveragereports/metrics dashboard using local sqlite db or json dumpautomatic publish to pypicode compliance to precommit hooksdocstringsmkdocs setuptest on linux systemstest on windowsSupportFork and Star this repo to show your supportSpread the word
Package: dorotheu-myfirstcalc
This is a very simple calculatorChange Log0.0.5 (25/05/2021)Bug fix0.0.4 (25/05/2021)Bug fix0.0.3 (25/05/2021)Bug fix0.0.2 (25/05/2021)My change0.0.1 (24/05/2021)First Release
Package: dorotheumypython
# DorotheuMyPythonExemplo de construcao de lib seguindo o manualhttps://medium.com/analytics-vidhya/how-to-create-a-python-library-7d5aea80cc3fChange Log0.1.7 (25/05/2021)Big fix0.1.6 (25/05/2021)Bug fix0.1.5 (25/05/2021)Bug fix0.1.4 (25/05/2021)Incluindo modulos0.1.3 (25/05/2021)Incluindo dependencias0.1.2 (25/05/2021)Incluindo wrapper0.1.1 (25/05/2021)Incluindo Changelog0.1.0 (25/05/2021)First Release
Package: dorothy-sdk
Client for the Dorothy Image Server built using therequests
library.Index and ContentsGetting startedAuthenticationExamples of useDevelopmentGetting startedAll JSONs returned by the API were serialized into Python objects to
make server usage easier and more standardized among team members.AuthenticationTo authenticate access to routes, it is necessary to obtain a token. The
token can be provided by the admin members of the Dorothy server. Once
the token has been obtained, it is possible to authenticate the client
in 3 ways:1. Passing the token directly as a parameter to the clientfrom doroty_client import Client

service = Client(token="Your token here")2. Through environment variablefrom doroty_client import Client
from os import environment

environment["DOROTYSDK_ACCESS_TOKEN"] = "your token here"


service = Client()3. Through a text fileCreate a txt file in a path of interest whose content is just your
token.from doroty_client import Client

service = Client(path="/path/to/the/file.txt")Examples of useOnce the authentication is done, it is possible to perform the following
tasks:Search for an imagesome_image = service.image("china_CHNCXR_0099_0_3D81FF")Search for an datasetdataset_china = service.dataset("china")Listing images from a datasetdataset_china = service.dataset("china")
images = dataset_china.list_images()Downloading an imagesome_image = service.image("china_CHNCXR_0099_0_3D81FF")
image_bytes = some_image.download_image()This client was built based on the requests library. For any questions
about its use, read the library documentation.DevelopmentFor development, just clone the repository and create a virtual
environment from the declared dependencies. Direct pushes to main branch
are not allowed as main represents the most stable version of the
client. Look to develop a feature on a new branch and then later open PR
to the dev branch.
Package: dorsa-datetime
DateTimeDateTime is Python package that contains functions to get the current date and time.Installation and updatingUse the package managerpipto install package.UsageFeatures:datetime_funcs.get_date --> retrns current date, wheter in shamsi or miladidatetime_funcs.get_time --> returns current timedatetime_funcs.get_datetime --> returns both current date and time in wheater shamsi or miladi formatdatetime_funcs.get_days_per_month --> returns number of days for a given monthDemo of the features:fromdatetime_funcsimportget_datefromdatetime_funcsimportget_timefromdatetime_funcsimportget_datetimefromdatetime_funcsimportget_days_per_monthprint(get_date(persian=True,folder_path=True))print(get_time(folder_path=False))print(get_datetime(persian=False,folder_path=False))print(get_days_per_month(month=6,persian=True))LicenseApache License 2.0
Package: dorsa-logger
LoggerLogger is a Python module that provides a logging functionality with various configuration options. It allows you to log messages to both a file and the console, with different log levels and formats.Installation◌Instructions:1-pip install dorsa_logger (not available yet)2-clone repositoryDocumentaionSphinx documents are not available yet :(Quick StartTo use the Logger module, follow these steps:Import the module:importdorsa_loggerCreate aloggerobject:logger_obj=dorsa_logger.logger(main_folderpath="./app_logs",date_type=dorsa_logger.date_types.AD_DATE,date_format=dorsa_logger.date_formats.YYMMDD,time_format=dorsa_logger.time_formats.HHMMSS,file_level=dorsa_logger.log_levels.DEBUG,console_level=dorsa_logger.log_levels.DEBUG,console_print=True,current_username="admin",line_seperator='-')Define a log message:log_msg=dorsa_logger.log_message(level=dorsa_logger.log_levels.ERROR,message="An error occurred",code="ERR000")Start logging messages:logger_obj.create_new_log(message=log_msg)5  Customize the logger configuration by changing the parameters passed to theloggerconstructor or using setter functions of logger object. For example, you can set a different main folder path, log levels, date and time formats, and more. for more detailes seeExample1Predefined Log MessagesYou can define and use predefined log messages. To define a log message, follow these steps:Define a log message:key=logger_obj.defined_logs.add_log_message(log_msg,key='MY_KEY')If you don't define any key, key is assigned automatically.logging with defined messages:logger_obj.create_new_log(message=key)This will log the predefined message with the specified log level. for more detailes seeExample2Decorators to log a functionYou can use decorators to log start, end or exceptions of a function. To use decorators, define your function as follow:@logger_obj.function_start_decorator()@logger_obj.function_exception_decorator()@logger_obj.function_end_decorator()deftest(a,b):res=a*b+20+a**bprint('In the function')raiseException('This is a fake exception')returnresAfter calling function the start, exceptions and end will be logged with defined messages. you can also specify your own message. for more detailes seeExample3Log LevelsThe following log levels are available:DEBUG (level 10)INFO (level 20)WARNING (level 30)ERROR (level 40)CRITICAL (level 50)EXCEPTION (level 60)You can use these log levels when logging messages to specify the severity of the message.Date TypesThe following date types are available:SOLAR_DATEAD_DATEDate FormatsThe following date formats are available:MMDDYYDDMMYYYYMMDDTime FormatsThe following date formats are available:HHMMHHMMSSHHMMSSMM
Package: dorset
Dorset remote agent libraryThis library provides components for implementing the remote agent web service
API forDorset conversational interface project.InstallationInstall using pip:$pipinstalldorsetUsageThis library handles the encoding and decoding of requests and
responses from a Dorset application. This supports the creation of
remote agents written in Python. Use this library with a python framework
for RESTful APIs like Flask, Bottle, or Django.The web framework will handle HTTP requests and response and this
library will decode the request as an AgentRequest object and will encode
an AgentResponse.With Flask, this will look like:app=Flask("dorset_hello")# required endpoint for the application to test if the agent is alive@app.route('/ping',methods=['GET'])defping():returnjson.dumps("pong")# primary endpoint@app.route('/request',methods=['POST'])defprocess():agent_request=Dorset.decode_request(request.data)print(agent_request.text)returnDorset.encode_response(text="hello, world!")
Package: dort
DortSolver Python API(absolute insanity)Usingdort's API, which you can purchase atdiscord.gg/dort-captcha.Now also featuring Dort's tempmail services! You can purchase it atdiscord.gg/emails.Quick, bad documentationInstallation$pipinstalldortSolve FunCaptchafromdort.captchaimportFuncaptchaTaskfuncapSolver=FuncaptchaTask(apiKey="your api key",# Your DortSolver API key.publicKey="B7D8911C-5CC8-A9A3-35B0-554ACEE604DA",# The Funcaptcha public key of the website you wish to solve on.siteUrl="https://iframe.arkoselabs.com",# The URL of the site you are wishing to solve on (e.g. https://iframe.arkoselabs.com for outlook)apiUrl="https://client-api.arkoselabs.com",# Optional. Defaults to https://client-api.arkoselabs.com/.blob="blob",# Optional. Not needed for Outlook, or any other site I've tried besides ROBLOX.proxy="socks5://user:pass@host:port")print(funcapSolver.solve())Solve HCaptchafromdort.captchaimportHCaptchaTaskhcapSolver=HCaptchaTask(apiKey="your api key",# Your DortSolver API key.publicKey="a5f74b19-9e45-40e0-b45d-47ff91b7a6c2",# The HCaptcha public key of the website you wish to solve on.siteUrl="https://accounts.hcaptcha.com/demo/",# The URL of the site you are wishing to solve onproxy="socks5://user:pass@host:port"# (Optional) Your proxy URL. Formatted as protocol://user:pass@host:port)print(hcapSolver.solve())Solve ReCaptchaV3 (DEPRECATED!!)fromdort.captchaimportReCaptchaV3TaskrecapSolver=ReCaptchaV3Task(apiKey="your api key",publicKey="6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696",siteUrl="https://recaptcha-demo.appspot.com/recaptcha-v3-request-scores.php",callback="https://recaptcha-demo.appspot.com/recaptcha-v3-request-scores.php?token=")print(recapSolver.solve())DortGen Email Examplefromdort.mailimportDortMailfromimap_toolsimportMailMessagemail=DortMail("apiKey")# Replace with your API key.print(mail.getTypes())# Print out the currently available email types.print(mail.getBalance())# Print out your current balance.dortMail=mail.purchaseMails(type=1,amount=1)[0]# Returns an array of type DortMailAddress.x:MailMessage# This is included with the imap_tools library, used for fetching emails.forxindortMail.getMailbox():# Get the entire mailboxprint(x.subject)# Print out the subject of the message.x:MailMessageforxinaddress.getEmailsFromSender("noreply@discord.com"):# This will do the same as above, but only show emails from a specific address.print(x.subject)You can also simply login to any outlook/hotmail email address and check it with this API, but it's essentially wrapping a pre-existing IMAP library, so it may be in your best interest to instead just use that. You can find said IMAP libraryhere.fromdort.mailimportDortMailAddressfromimap_toolsimportMailMessageaddress=DortMailAddress("stevemolon75353@outlook.com","L3yf$DortGen")# Login to account with email and passwordx:MailMessage# This is included with the imap_tools library, used for fetching emails.forxindortMail.getMailbox():# Get the entire mailboxprint(x.subject)# Print out the subject of the message.
Package: dorthrithil-mediawiki-utilities
MediaWiki Utilities is an open source (MIT Licensed) library developed by Aaron Halfaker for extracting and processing data from MediaWiki installations, slave databases and xml dumps.Install with pip:pip installmediawiki-utilitiesNote:Use of this library requires Python 3 or later.Documentation:http://pythonhosted.org/mediawiki-utilities/About the authorname:Aaron Halfakeremail:aaron.halfaker@gmail.comwebsite:http://halfaker.info–http://en.wikipedia.org/wiki/User:EpochFailContributorsNone yet.  Seehttp://github.com/halfak/mediawiki-utilities.  Pull requests are encouraged.NoteFork by Felix Engelmann:https://github.com/dorthrithil/python-mediawiki-utilities
Package: dortmund2array
dortmund2arrayTool to convert datasets fromBenchmark Data Sets for Graph Kernels (K. Kersting et al., 2016)into a format suitable for deep learning research in graph classification.InstallationSimply runpip install dortmund2arrayto install the command-line interface. The only dependencies arenumpy networkx pandas.OutputGiven any benchmark dataset, this tool will create a fileDATASET.picklethat contains a pickled list. At indexithe list has a dictionary with the adjacency matrix, the graph signal (also known as graph feature matrix) and the corresponding label for theith graph.{"adjacency":...# as numpy array. Shape: (nodes, nodes)"graph_signal":...# as numpy array. Shape: (nodes, features)"label":...# usually a scalar.}The graph signal is an array of shape(nodes, features)where the features are either attributes given by the dataset or if no attributes are available, we simply take the node labels as attributes.How to useSimply get thedortmund2arraycommand line tool viapip install dortmund2array.usage: dortmund2array [-h] [--version] [--output OUTPUT_FOLDER]
                      [--input INPUT_FOLDER]

Tool to convert datasets from 'Benchmark Data Sets for Graph Kernels' (K.
Kersting et al., 2016)

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --output OUTPUT_FOLDER, -o OUTPUT_FOLDER
                        Output folder.
  --input INPUT_FOLDER, -i INPUT_FOLDER
                        Input folder containing the dataset of the same name.Thus, download and unzip a dataset. Make sure the folder-name agrees with the dataset-name on the files inside of it. If you for instance downloadMUTAGand the corresponding folder is.\MUTAG\and you want the array data saved in.\MUTAG_array\then you need to simply run:dortmund2array -i ./MUTAG/ -o ./MUTAG_array/RequirementsMake sure you meet all the dependencies inside therequirements.txt.
Package: dosa
Python wrapper for Digital OceanAPI V2.Installationpip install dosaUsageimport dosa

API_KEY = 'Your API Key'
dosa.set_debug()  # enables debug logs

client = dosa.Client(api_key=API_KEY)

# Droplets
client.droplets.list()
status, result = client.droplets.create(name='terminator', region='nyc2',\
    size='512mb', image='ubuntu-14-04-x32', ssh_keys=[12345])
new_droplet_id = result['id']

# Droplet
new_droplet = client.Droplet(new_droplet_id)
print(new_droplet.info())
## shortcuts
new_droplet.status()
new_droplet.ip_addresses()
client.droplets.delete(new_droplet_id)


# Get all available size configs
client.sizes.list()

# SSH Keys
pub_key = open('~/.ssh/id_rsa.pub').read()
client.keys.create(name='RSA key', public_key=pub_key)
client.keys.list()

# Images
client.images.list()
client.images.all()
client.images.search('ubuntu', 'sgp1', show_op=True)

# Domains
client.domains.list()
client.domains.all()
client.domains.create(name='example.com', ip_address='1.2.3.4')
client.domains.delete(id='example.com')

### Get specific domain
domain = client.Domain(domain='example.com')
domain.info()

# Domain Records
dr = client.DomainRecords(domain='example.com')
dr.list()
dr.create(type='A', name='example.com', data='162.10.66.0')

### Get specific domain record for a domain
record = dr.Record(record_id='7976006')
record.info()
record.update(name='new.example.com')

# Firewalls
## Create a firewall
params = {
 'inbound_rules': [{'ports': '22',
   'protocol': 'tcp',
   'sources': {'addresses': ['0.0.0.0/0', '::/0']}},
  {'ports': '80',
   'protocol': 'tcp',
   'sources': {'addresses': ['0.0.0.0/0', '::/0']}}],
 'name': 'firewall',
 'outbound_rules': [{'destinations': {'addresses': ['0.0.0.0/0', '::/0']},
   'ports': 'all',
   'protocol': 'tcp'}],
 'tags': []}
firewall = client.firewalls.create(**params)

# search firewall by name
firewall = client.firewalls.get_by_name('firewall')

## add a droplet to a firewall
firewall.add_droplet(new_droplet_id)

## remove a droplet from a firewall
firewall.remove_droplet(new_droplet_id)

## delete a firewall
client.firewalls.delete(id=firewall.id)

# Extras
# $ ls keys/
# rsa_pub1.id  rsa_pub2.key  rsa_pub3.key
keys_dir = 'keys'
client.sync_ssh_keys(keys_dir)NotesImage search:>>> client.images.search('ubuntu', region='sgp1', show_op=True)Above code snippets searches for images containing ubuntu in description
or slug. Since region is specified (sgp1), only images in sgp1 region
would be considered. If no region is specified all regions are included.Tests:>>> toxTo run tests, runtoxin the root directory of the repo. It will create
virtual environments specified intox.ini, install dependancies, and
run pytest.CreditsCreated while working onScroll.in's project.Dosa?