Saravanan666/pypi-org huggingface dataset:
Package: does-it-fit
A python package :snake: to that checks if shapes positioned on the circumference of a circle overlap or notinstallationTo install run this pip command from the terminalpipinstallexample_package_for_flftestingpipinstalldoes_it_fit[test]pytesttestsUsageHow to ...importexample_package_for_flfexample_package_for_flf.fits()
Package: does-this-even-work-anymore
deprecationThedeprecationlibrary provides adeprecateddecorator and afail_if_not_removeddecorator for your tests. Together, the two
enable the automation of several things:The docstring of a deprecated method gets the deprecation details
appended to the end of it. If you generate your API docs direct
from your source, you don’t need to worry about writing your own
notification. You also don’t need to worry about forgetting to
write it. It’s done for you.Rather than having code live on forever because you only deprecated
it but never actually moved on from it, you can have your tests
tell you when it’s time to remove the code. The@deprecateddecorator can be told when it’s time to entirely remove the code,
which causes@fail_if_not_removedto raise anAssertionError,
causing either your unittest or py.test tests to fail.Seehttp://deprecation.readthedocs.io/for the full documentation.Installationpip install deprecationUsageimport deprecation

@deprecation.deprecated(deprecated_in="1.0", removed_in="2.0",
                        current_version=__version__,
                        details="Use the bar function instead")
def foo():
    """Do some stuff"""
    return 1…but doesn’t Python ignoreDeprecationWarning?Yes, by default since 2.7—and for good reason[1]—and this works fine
with that.It often makes sense for you to run your tests with a-Wflag or
thePYTHONWARNINGSenvironment variable so you catch warnings
in development and handle them appropriately. The warnings raised by
this library show up there, as they’re subclasses of the built-inDeprecationWarning. See theCommand LineandEnvironment Variabledocumentation for more details.Even if you don’t enable those things, the behavior of this library
remains the same. The docstrings will still be updated and the tests
will still fail when they need to. You’ll get the benefits regardless
of what Python cares aboutDeprecationWarning.[1]Exposing application users toDeprecationWarnings that are
emitted by lower-level code needlessly involves end-users in
“how things are done.” It often leads to users raising issues
about warnings they’re presented, which on one hand is done
rightfully so, as it’s been presented to them as some sort of
issue to resolve. However, at the same time, the warning could
be well known and planned for. From either side, loudDeprecationWarnings can be seen as noise that isn’t
necessary outside of development.
Package: doex
doex - Design and Analysis of ExperimentsPython library for conducting design of experiments.InstallationpipinstalldoexOnline DemoTry outdoexin an online Jupyter Notebook -Sample usageimportdoexexp=doex.OneWayANOVA([24,28,37,30],# Treatment 1[37,44,31,35],# Treatment 2[42,47,52,38],# Treatment 3)+---------------------+-----+----------------+---------------------+-------------+---------+
| Source of Variation | DOF | Sum of Squares | Mean Sum of Squares | F statistic | p value |
+---------------------+-----+----------------+---------------------+-------------+---------+
|      Treatments     |  2  |    450.6667    |       225.3333      |    7.0356   |  0.0145 |
|        Error        |  9  |    288.2500    |       32.0278       |             |         |
|        Total        |  11 |    738.9167    |                     |             |         |
+---------------------+-----+----------------+---------------------+-------------+---------+DocumentationVisit the doexdocumentation.ImplementationsCompletely Randomized Design / One-Way ANOVARandomized Complete Block Design / Two-Way ANOVALatin Square DesignGraeco-Latin Square DesignRandomized Complete Block Design with missing valuesBalanced Incomplete Block Design (TODO)Factorial Designs (TODO)AcknowledgementsAdapted fromhttps://github.com/pawanaichra/doe.
Package: dofaucet
dofaucettl;drRead YAML-formatted ansible inventory, create digitalocean droplets accordingly.Neat tricks:creates DNS records for both internal and external droplet IPsadds ssh pubkeys to droplets (only keys already uploaded to DO)adds alls created droplets to a project so they're easy to identifyExample usageInventoryfoo.ymlall:
  vars:
    do_ssh_key_names: ['my_key', 'my_friends_key']
    dofaucet_dnsroot: example.com
    do_project: test_webstack_ansible
    do_image_slug: fedora-28-x64

foohosts:
  vars:
    do_tags: foohosts
  hosts:
    foo.infra.example.com

barhosts:
  vars:
    do_tags: barhosts
    # the bar app needs more ram
    do_size_slug: s-1vcpu-2gb
  hosts:
    bar.infra.example.comdofaucet CLIdofaucet --token 23234242 --project foo --inventory foo.ymlfuture ideasAnsible is python3, so we could use the native ansible functionality to parse the inventory.
Example code:from ansible.parsing.dataloader import DataLoader
from ansible.vars.manager import VariableManager
from ansible.inventory.manager import InventoryManager

loader = DataLoader()
inventory = InventoryManager(loader=loader, sources='~/inventory.yml')
variable_manager = VariableManager(loader=loader, inventory=inventory)
Package: doFolder
文件夹管理(doFolder)pipinstalldoFolder使用方法导入importdoFolder部分功能Folder指一个文件夹参数path文件夹路径:str|doFolder.Path参数onlisten是否监听比同步文件夹变动:bool参数scan是否在现在扫描(否则会在访问时进行扫描)属性files文件夹中的文件列表:FileList属性subfolder文件夹中的子文件夹:FolderList方法hasFolder,hasFile是否包括某个文件/文件夹,参数为str时默认匹配.name属性方法remove,copy,move文件夹操作方法search搜索文件夹的内容参数condition搜索条件:List[UnformattedMatching]参数aim目标:"file"|"folder"|"both"参数threaded是否线程化bool参数threaded最大线程数:int返回搜索结果:SearchResult方法createFile创建文件参数name文件名[参数]content文件内容File指一个文件参数path文件路径:str|doFolder.Path方法remove,copy,move文件操作属性mode,ino,dev,uid,gid...参见os.statPath指一个路径:来自specialStr的路径(0.0.10之后)compare提供比较文件夹的API函数compare比较两个文件夹参数folder1&folder2比较的文件夹:Folder参数compareContent文件内容的比较方法:str|Callable[[doFolder.File,doFolder.File],bool]参数threaded是否线程化bool参数threaded最大线程数:int返回比较结果:CompareResult命令行使用compareFolder1Folder2[-c][-t[-nnum]]具体作用参见compare-h对于比较结果的操作指令请在出现>>>后键入help并回车以获取详细解释关于作者作者主页宽宽2007本项目在苟浩铭/文件夹管理 (gitee.com)上开源帮助文档参见宽宽的帮助文档 (gitee.io)pypi官网项目地址Pypi
Package: dofpy
DoF - Deep Model Core Output FrameworkWhat is this?DoF is a highly scalable dataset format which helps deep learning scientist to work with foreign and/or sensitive data. DoF provides fast dataset sharing and data-secure at the same time.How it works?Basic workflow in theory looks like following consists of two parts.Create DoF datasetCollect or find an original dataset.Make the needed data augmentation and preprocessing.Choose a pre-trained model to use. (Most use cases have their best prectices now.)Replace the final classifier or quantifier part of the architecture with empty layer(s).Forward the whole dataset through the pre-trained model core.Save and publish the outputs in DoF file.Use DoF datasetLoad the DoF datasetBuild your own classifier moduleTrain your classifier moduleDataflowThe most significant difference between normal training process and training process with DoF is that the characteristics of the raw input data and data augmentation, preprocessing must be separately noticed for further use. This additional data has both common and unique level in the whole dataset.Advantages of DoFSecure and PrivateUsing only huge amount of fully connected nodes makes harder to calculate the original values of input data. Some other processing method makes irreversible destructions of original data like the use of pooling layers. Working with image has a unique approach: the original values does not equals with raw data since a raw image was transformed and normalized before processing. The big and complex networks and pooling layers include the possibility of security. This can be used to protect personal, sensitive or health-related data. In Europe General Data Protection Regulation (GDPR) makes strict border of using data which come from European people. DoF helps to transfer and share data across countries without conflict with GDPR or any other data protection regulation.EfficientAt working with pre-trained models a common solution is to simply cut the classifier and change it with another one. This is not efficient since the frozen (not trained) core of the pre-trained model performs the same calculations over and over again in each epoch. With DoF the result of not trained model can be saved. Only trained layers perform new calculations in the epochs. This is much less time consuming depending on the the size rate between pre-trained model core and the custom classifier.In most cases storing datasets in DoF is effective in storage size than storing datasets as their own. The size of the data can be precisely estimated since it depends on the shape of the pre-trained model core output only.RequirementsThe python module DoF requires nothing than libraries from the Standard Library.What's new in DoF 2.0.0New structure for DoF filesNew DoF file type: DoFJSONNew program structure: core.py, data.py, datamodel.py, file.py, error.py,
information.py, services.py, storage.pyUse native typing for every input parameters (>= Python 3.7)Use init.pyDataset information section can be rewrittenDoF is finallyfinal
Package: dofusdude
# A project for you - the developer. The all-in-one toolbelt for your next Ankama related project.  ## Client SDKs - [Javascript](https://github.com/dofusdude/dofusdude-js) npm i dofusdude-js --save - [Typescript](https://github.com/dofusdude/dofusdude-ts) npm i dofusdude-ts --save - [Go](https://github.com/dofusdude/dodugo) go get -u github.com/dofusdude/dodugo - [Python](https://github.com/dofusdude/dofusdude-py) pip install dofusdude - [PHP](https://github.com/dofusdude/dofusdude-php)  Everything, including this site, is generated out of the [Docs Repo](https://github.com/dofusdude/api-docs). Consider it the Single Source of Truth. If there is a problem with the SDKs, create an issue there.  Your favorite language is missing? Please let me know!  # Main Features - 🥷 **Seamless Auto-Update** load data in the background when a new Dofus version is released and serving it within 2 minutes with atomic data source switching. No downtime and no effects for the user, just always up-to-date.  - ⚡ **Blazingly Fast** all data in-memory, aggressive caching over short time spans, HTTP/2 multiplexing, written in Go, optimized for low latency, hosted on bare metal in 🇩🇪.  - 📨 **Discord Integration** Ankama related RSS and Almanax feeds to post to Discord servers with advanced features like filters or mentions. Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user.  - 🩸 **Dofus 2 Beta** from stable to bleeding edge by replacing /dofus2 with /dofus2beta.  - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_ including the dropped languages from the Dofus website _de_ and _it_.  - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing.  - 🕵️ **Complete** actual data from the game including items invisible to the encyclopedia like quest items.  - 🖼️ **HD Images** rendering game assets to high-res images with up to 800x800 px.  ... and much more on the Roadmap on my Discord.   ## Deploy now. Use forever. Everything you see here on this site, you can use now and forever. Updates could introduce new fields, new paths or parameter but never break backwards compatibility.  There is one exception! **The API will _always_ choose being up-to-date over everything else**. So if Ankama decides to drop languages from the game like they did with their website, the API will loose support for them, too.  ## Thank you! I highly welcome everyone on my [Discord](https://discord.gg/3EtHskZD8h) to just talk about projects and use cases or give feedback of any kind.  The servers have a fixed monthly cost to provide very fast responses. If you want to help me keeping them running or simply donate to that cause, consider becoming a [GitHub Sponsor](https://github.com/sponsors/dofusdude).
Package: dofutils
DofutilsCollection of useful things to build Dofus Retro bot/emulator.Written in Python3. Require Python >= 3.8. andPoetry.Installationusepip install dofutilsDeveloppementusepoetry run teststo launch all tests.usepoetry run fmtto format the project.usepoetry run tcheckto type check the project.AcknowledgementVincent Quatrevieux: the author of the original libArakneUtils: the original codeAuthorDysta(me)
Package: dog
dogdog is a simple wrapper for docker run to make it simple to call tools residing inside docker containers.The basic idea is that you just put "dog" in front of the command you normally call.So if your normally use "make" to compile your code, then if your compiler tools
are stored inside a docker container you just do "dog make" instead - and dog
will mount you local workspace and run the correct docker container without the
developer noticing at all.The docker container to use is defined in a file called dog.config which is
normally positioned in the root of your workspace and contains the name of the
docker image.DocumentationUsage, Configuration and how it works isall available here.InstallationDog is a single file script that only require Python 3.5+ and does not use any
modules outside the ones that ship with Python.So basically you can just clone the repo and stick a symlink to dog.py in your PATH.Dog is also available on pypi so you should also be able to simply do:pip install dog

# Or

python -m pip install dogTo get going.ExampleBy default the docker image is fetched from the default docker registry (hub.docker.com),
for instance:[dog]
full-image=gcc:7.5Means that:dog gcc main.c -o mainWill compile main.c using gcc 7.5.crossbuild-for-dogYou can see a more real-world example by looking at thecrossbuild-for-dog test imagethat extends the standard crossbuild docker image with a dog enabled entrypoint - which can then be used to compile ARM linux executables anywhere.The source for crossbuild-for-dog is available intests/dockers/crossbuild-for-dogand there is a pytest verifying it intests/test_crossbuild_for_dog.py.
Package: dogbin
Dogbin-API-Wrapperdel.dog asynchronous / synchronous APIyou can to use with this library:paste text todogbinget paste fromdogbinworking with asynchronous / synchronousGetting startedpip install dogbinpaste todogbinfromdogbinimportDogbinimportasynciodeldog=Dogbin()url=deldog.paste("some text...")# syncprint(url)Aync=asyncio.run(deldog.Async_paste("some text..."))# asyncprint(Aync)get paste fromdogbinfromdogbinimportDogbinimportasynciodeldog=Dogbin()by_url=deldog.get_paste('https://del.dog/atacopegno')# syncby_key=deldog.get_paste('atacopegno',save_to_file=True)# syncprint(f'getting this paste by url{by_url}\n\ngetting this paste by key{by_key}')async_url=asyncio.run(deldog.Async_getpaste('https://del.dog/atacopegno',save_to_file=True))# asyncasync_key=asyncio.run(deldog.Async_getpaste("atacopegno"))# asyncprint(f'getting this paste by url:\t{async_url}\n\ngetting this paste by key:\t{async_key}')
Package: dogblack
DogBlack é um framework web Python que permite criar aplicativos da web com suporte a autenticação, banco de dados MongoDB, servir arquivos estáticos e renderizar templates Jinja2. Ele também fornece um sistema de roteamento simples.Este framework é configurável através de middleware, permitindo que você adicione funcionalidades personalizadas à cadeia de processamento de solicitações HTTP. O AuthMiddleware incluído oferece suporte à autenticação por token.A estrutura do projeto inclui diretórios templates e static para armazenar arquivos de modelo HTML e recursos estáticos, como CSS e JavaScript.A classe Database oferece uma interface para interagir com um banco de dados MongoDB, permitindo inserir e consultar documentos.A função json_response auxiliar facilita a criação de respostas JSON personalizadas.O framework pode ser configurado por meio do arquivo pyproject.toml, que lista as dependências necessárias, e você pode usar a ferramenta Poetry para gerenciar o projeto.Em resumo, o DogBlack é uma estrutura flexível que facilita a criação de aplicativos web em Python, fornecendo recursos essenciais e permitindo a extensão com middleware personalizado.
Package: dogbutler
READ MEDogbutler is a client library base on requests but with a cache and persistent cookie support.INSTALLATION>>> pip install dogbutlerUSAGEDogButler supports GET, HEAD, POST, PATCH, PUT, DELETE, and OPTIONS requests.>>> import dogbutler
>>> r = dogbutler.get('http://www.google.com', headers={'a': 'antelope'}, cookies={'a': 'apple'})
>>> r.status_code
200
>>> r.contentSessionsA session has its own cache, cookie jar, and redirect history.>>> from dogbutler import Session
>>> s = Session()
>>> r = s.get('http://www.google.com', headers={'a': 'antelope'}, cookies={'a': 'apple'})
>>> r.status_code
200
>>> r.contentAsyncNote: Only GET requests can be called asynchronously at the moment.Each request is a tuple of (url, kwargs), where kwargs can contain optional arguments such as headers and cookies.>>> from dogbutler import async
>>> request1 = ('http://www.google.com', {'headers': {'a': 'antelope'}, 'cookies': {'a': 'apple'}})
>>> request2 = ('http://www.apple.com', {'headers': {'b': 'bear'}, 'cookies': {'b': 'banana'}})
>>> response1, response2 = async.get([request1, request2])
>>> response1.status_code
200
>>> response2.status_code
200CHANGE LOGVersion 0.0.4Ignore cache if no-cache is defined in request header.Fix minor bugs.Version 0.0.3Support Sessions.Not cache hop-by-hop headers.Version 0.0.2Set default cache, cookie cache, and redirect cache backends.Disable cache, cookie cache, and redirect cache by setting each to None.Version 0.0.1Initial release.
Package: dogceo
Dog APIDog API client forPython.DownloadPyPIpip install dogceoExamplefromdogceoimportmultiple_random_imagesfordoginmultiple_random_images(10):print(dog)DocumentationpdocLicenseDog API client is released under theApache License 2.0.Copyright 2022 XXIV

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
Package: doge
dogedogeis a simple motd script based on the slightly stupid but very funnydoge meme. It prints random grammatically incorrect statements that are
sometimes based on things from your computer.If you havepipx(you should!), you can try outdogewithout installing
it permanently.Just typepipx run dogein your terminal to see if you enjoy it. 🐶FeaturesRandomly placed and colored random strings, complete with broken english.Awesome Shibe 😎 in the terminal.Fetching of system data, such as hostname, running processes, current user
and$EDITOR.If you havelolcat, you can do this gem:while true; do doge | lolcat -a -d 100 -s 100 -p 1; done(thxhom3chuk)stdin support:ls /usr/bin | dogewill doge-print some of the executables
found in /usr/bin. wow. There are also multiple command line switches that
control filtering and statistical frequency of words. Seedoge -h, wow.To use all dictionary words that start or end with "dog", try:egrep '(^dog|dog$)' /usr/share/dict/words | fgrep -v "'s" | dogeInstallationpipx install doge-- this is the recommended method, but you needpipxinstalled and configured.pipxis usually the best way to install and run Python-based
applications from PyPI, so if you don't yet have it, you should! 👍To install newer versions, runpipx upgrade dogeorpipx upgrade-all.Make a Pythonzipappwithpexorshiv, and put it in your$PATH, for example:shiv doge -c doge -o ~/bin/dogepex doge -c doge -o ~/bin/dogeInstall withpip, see Brett Cannon'sA quick-and-dirty guide on how to install packages for Pythonfor more information. TLDR; basically use your preferred Python and run:python3 -m pip install dogeThen, just add a call todogeat the bottom of your shell rc file.If you don't want to install doge with the options above for whatever reason,
there is a properpyproject.tomlincluded, so inside a virtual
environment,python -m pip install -e .should work just fine.NotesYou need a terminal that supports 256 colors running on a system that supports
unicode.The terminal Shibe was created with hax0r Gimp skills andimg2xterm.
Package: dogebuild
dogebuildGeneral purpose build manager mainly designed to build C++ projects which
uses directed acyclic graph (DAG) to manage tasks dependencies.InstallpipinstalldogebuildHow to useDogebuild usesdogefile.pyto describe project structure and task DAG.
An example ofdogefile.py:fromdogebuildimportmake_mode,taskmake_mode()@taskdeftask1():print("task1")@task()deftask2():print("task2")@task(aliases=["Task 3 verbose name"],depends=["task1","task2"],)deftask3():print("task3")@task(depends=["Task 3 verbose name"],aliases=["build"])deftask4():print("task4")To run task simply pass task name as argument to doge script.doge buildwill runbuildtask and all dependencies.
You can also run multiple tasks:doge task1 task2.For more advanced use see plugins section.PluginsPlugins allow to hide low-level mechanics of build from user.
See how to use plugins in plugin documentation.Language plugins:C/C++dogebuild-c- a C/C++ build pluginOther pluginsProtobufdogebuild-protobuf- a protobuf pluginTex plugindogebuild-tex- a Tex plugin
Package: dogebuild-c
dogebuild-cC language plugin for dogebuildInstall dogebuild c pluginInstall dogebuild c plugin via pip:pipinstalldogebuild-cDogebuild will be installed as a dependency.Creating project with tapasThe easiest way to create project is to usetapas scaffold tool.
To install tapas use pip:pipinstalltapasAnd then run tapas and follow instructions:tapasdogebuild-c<target-dir>Manually creating projectCreatedogefile.pyand fill it with following code:frompathlibimportPathfromdogebuild_c.c_pluginimportCPlugin,BinaryTypeCPlugin(binary_type=BinaryType.EXECUTABLE,out_name="executable_name",src=Path("src").glob('**/*.c'),headers=Path("src").glob('**/*.h'),)Create directorysrcand put all your source code files into that.Building projectTo build project run dogebuild in project directory:dogebuildTo build and run project run:dogerunNext stepsAdvanced documentation for dogebuild available inreadthedocs.Advanced documentation for dogebuild c plugin available inreadthedocs.
Package: dogebuild-tex
dogebuild-texTex plugin fordogebuild.InstallTo install dogebuild-tex callpipinstalldogebuild-texHow to create projectCreatedogefile.pyand fill it with following code:fromdogebuild_teximportTexTex()Create your latex document inmain.texfile.
To build project rundoge buildordoge pdf.Use docker image to build projectDogebuild-tex allow you to use docker image to keep your build reproducible.
To use docker set image as tex binary as follow:fromdogebuild_teximportTex,DockerTexBinaryTex(tex_binary=DockerTexBinary("{docker-image-name}"))Dogebuild will call docker at the build process.DocumentationAdvanced documentation for dogebuild available inreadthedocs.Advanced documentation for dogebuild-tex plugin available inreadthedocs.