Saravanan666/pypi-org huggingface dataset:
Package: digs
DigsMaking easier the text crawling tasks over websites with depth levels.Installationpip install digsorpip install --upgrade digsUsageCommon use will be extract the text from a website, the following call
from terminal is the way to do that:digs http://thewebsite.comAlso, you can add the option –depth=LEVEL to perform over the root
domain (website) a crawling with the specific depth:digs http://thewebsite.com --depth=3Be careful, with high levels, the tree asociated to those crawlings
grows exponentially in size.And last but not the least, you can turn on a graphical interface (if
you have installed PySide) with the following call from terminals:digs -iIt will be look something like this:About requirementsLook at requirements in the file: :requirements.txtdigs was written byJonathan S.Prieto C..Changelog0.1.6 (2015-08-18)fixed bugs relate with lxml dependencies and linkGrabber importsAdd extra_require, PySide if you want to run the graphical interface0.1.5 (2015-07-12)After the pull-request to linkGrabber package, it has include in the requirements.Some improvements for GUI0.1.4 (2015-07-07)MANIFEST.in add for some OS that they need it.The gui already show the INFO level for debugging by default0.1.0 (2015-07-06)First release on PyPI.
Package: digsim-logic-simulator
DigSim - Interactive Digital Logic SimulatorIntroductionDigSim is a python based framework for digital circuit simulation.
The main purpose of the software is to, in an educational way, play around with digital logic (simple gates and verilog designs).When working with block design in Verilog/VHDL the simulation tools are normally fed with test stimuli (a very non-interactive way of working...)
A block design can be synthesized and tested on an FPGA (where there are possibilities for interactivity if buttons and LED/Hex digits are available),
but that often has a great cost in time (and sometimes money) leading to long turnaround time.I started developing DigSim to make it easy to implement and visualize the functionality of simple verlog modules.
During development I tried to synthesize larger verilog designs, such as the classic6502 CPU,
and even if it is slower than many other simulators it is not entirely useless.FeaturesCreate and simulate a circuit using python codeCreate and simulate a circuitinteractivelyusing the GUICreate new components using synthesized verilog codeSave simulation results in VCD files, which can be opened in for example GTKWave.QuickstartInstall from PyPipip3 install digsim-logic-simulatorInstall from GitHub> git clone https://github.com/freand76/digsim.git
> cd digsim
> python3 -m pip install .Start Interactive GUI> python3 -m digsim.appNote: UbuntuIf your Ubuntu installation gives the folloing error message:qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: vnc, wayland, wayland-egl, eglfs, offscreen, xcb, minimal, linuxfb, vkkhrdisplay, minimalegl.Then the following package must be installed:> apt install libxcb-cursor0Start with example circuit (example circuits are available in the github repository)> python3 -m digsim.app --load example_circuits/counter_yosys_netlist.circuitRun example (examples are available in the github repository)> python3 examples/example_sr.pyLook at waveforms> python3 examples/example_sr.py
> gtkwave sr.vcdYosys synthesis helper tool> python3 -m digsim.synth synth -i <verilog file 1> <optional verilog file 2> -o <output_file.json> -t <verilog top_module>DocumentationDocumentationon GitHubStar History
Package: digwebs
Digolds web frameworkA tiny web framework calleddigwebswhich is developed by Python. You can checkout the detail design ofdigwebsinhere. You can't usepipto install this web framework from PyPI right now, because digwebs is under development and is used to empower the web app calleddigolds. When more features are added to this framework, we will provide stable package to PyPI where you can usepipto install it to your computer.As a developer, you can also usegittopullthis repository to your computer, then follow below steps to quickly boost this framework.Install Python 3.6.x to your computerUsegitto pull the sourceRunpip install jinja2to install jinja2 to your computerRunpython .\digwebs\project_generator.pyto generate the project file structureThis step will generate project layout like below:.
  |-controllers
  |-digwebs
  |-middlewares
  |-static
  |  |-css
  |  |-fonts
  |  |-images
  |  |-js
  |-test
  |-viewsdigwebsis where this web framework locatecontrollersis where you put controller scriptmiddlewaresis where you put middlewares scriptstaticis where you put front end script such as css file, javascript file, font, image etctestis where you put the test script for your web appviewsis where you put the html filerunpython .\digwebs.pyto launch the web app demoopen your browser and enterlocalhost:9999,you see the content"digwebs - A Minimal Web Framework!"Note: if you want to be a master ofdigwebs, head overhereto learn the design philosophy ofdigwebsContributionWe are looking for contributors. Please check open issues in the above repos if you think you could help, or open a new one if you have an idea you'd like to discuss.LicenseThis project is licensed under the MIT open source license.
Package: dih
DIH: Docker Image HandlerA tool to save and load the docker image tarball file.Requirementspython >=3.8Virtualenv, VirtualenvWrapperInstall module with PyPImkvirtualenvdih
pipinstalldihLoad docker image with tarball fileLoad docker image with specific folder or filedihload-f./archivesLoad docker image with manual selectiondihload-f./archives--selectSampleEnter the index of the docker images...Load docker image with specific folder and verify with compose file.dihload-f./archives-c<path/to/compose>SampleVerify with compose file and only load the verified indexes...Save docker image into tarball fileSave docker image into tarball file.dihsave-f./archivesFilter with specific rule, includes something and excludes something.dihsave-f./archives-incinnodisk-excnoneSampledih save -f ./archives -inc rtsp -exc none...More detaildih load --helpUsage:dihload[OPTIONS]Options:
-f,--folderPATHPathtothefolder.[required]-c,--compose-filePATHPathtocomposefile.
-s,--selectSelectbyindex.
--debugOnlydisplaytheinformation.
--helpShowthismessageandexit.dih save --helpUsage:dihsave[OPTIONS]Options:
-f,--folderTEXTPathtothefolder.[required]-inc,--includesTEXTIncludekeys.
-exc,--excludesTEXTExcludekeys.
--debugOnlydisplaytheinformation.
--helpShowthismessageandexit.For Local DeveloperRequirementspython 3.10Virtualenv, VirtualenvWrapperUsagemkvirtualenvdih
pipinstall-rrequirements.txtFor Developer ( Docker )RequirementsDocker engineUsageHelpUsage:./docker/handler.sh[mode][ubuntu][command]Options:-mode:build|run-ubuntu:focal|20.04|jammy|22.04-command:onlysupportedwhen'handler.sh run'.e.g."bash"For example# Build docker image./docker/handler.shbuildfocal# Run docker container with specific version and command./docker/handler.shrunfocal"bash"Testingpytest-v
pytest--doctest-modules--junitxml=junit/test-results.xml--cov=.--cov-report=xml--cov-report=htmlDistributepython3-mpipinstall--upgradebuild
sudoaptinstallpython3.10-venv
python3-mbuild
twineuploaddist/*
Package: dihi-datavault
Data Vault 🔒Store and encrypt sensitive data in your git repo.InstallationPick your poison:pip install dihi-datavaultthendatavaultpoetry add dihi-datavaultthenpoetry run datavaultpipx install dihi-datavaultthenpipx run datavaultUsageFirst, create a new vault.datavaultnewpath/to/vaultThis command will...Provide you with a secret to use when encrypting your filesCreate a folder atpath/to/vaultwhere you place files you wish to be encryptedCreate apath/to/vault/.encrypteddirectory to store the encrypted files along with a manifest which tracks the state of files in the vaultCreate apath/to/vault/.gitignorefile which will ignore the unencrypted filesYou're now free to add files to your new vault and encrypt them:echo"apple">path/to/vault/apple.txtecho"banana">path/to/vault/banana.txt
datavaultinspect
datavaultencryptYou can also clear out the contents of the vault as needed...datavaultclear-decrypted
datavaultclear-encryptedNow lets say you've just pulled the repo and have none of the original files...datavaultdecryptDevelopmentUseful commands:poetry run pytestto run the testspoetry publish -r testpypiandpoetry publish -r testpypito test the deploymentpoetry version X.Y.Zto bump the version, thengit tag vX.Y.Zandgit push --tagspoetry publishto release
Package: dihlibs
dihlibsdihlibsis a Python package designed to simplify and enhance data integration and handling tasks. Whether you're dealing with data ingestion, preprocessing, transformation, or integration from various sources,dihlibsoffers a set of tools and utilities to make these tasks more straightforward and efficient.FeaturesData Ingestion: Easily import data from multiple sources like databases, files, or APIs.Data Transformation: Transform data with a set of powerful, easy-to-use functions.Integration Utilities: Seamlessly integrate data from different formats and standards.Preprocessing Tools: Prepare your data for analysis with preprocessing capabilities.InstallationInstalldihlibsusing pip:pipinstalldihlibs
Package: di-ioc
di-iocInversion of control / dependency injection for pythonTODO:Add AbstractLifetime class for singleton and scoped lifetimesUse ServiceRequest as the key to retrieve a service instead of just a typeThis would change AbstractServiceProvider, AbstractServiceContainer, ServiceFactory
to accept a ServiceRequest object that defines what service needs to be returned. It
still allows for retrieving based on a type, but also allows for more complex resolving
needs.Maybe add a Resolver layer inside the ServiceProvider that takes the request and ChainMap
of service factories to resolve the requested service. It could be customized by user if
needed.
Package: dijitso
A Python module for distributed just-in-time shared library buildingAuthors:Martin Sandve Alnæs (martinal@simula.no)Garth N. Wells (gnw20@cam.ac.uk)Johannes Ring (johannr@simula.no)Contributors:Jan Blechta (blechta@karlin.mff.cuni.cz)DocumentationDocumentation can be viewed athttp://fenics-dijitso.readthedocs.org/.Automated TestingWe use Bitbucket Pipelines and Atlassian Bamboo to perform automated
testing.Code CoverageCode coverage reports can be viewed athttps://coveralls.io/bitbucket/fenics-project/dijitso.MotivationThis module was written to improve a core component of the FEniCS
framework, namely the just in time compilation of C++ code that is
generated from Python modules, but is only called from within a C++
library, and thus do not need wrapping in a nice Python interface.The main approach of dijitso is to use ctypes to import the dynamic
shared library directly with no attempt at wrapping it in a Python
interface.As long as the compiled code can provide a simple factory function to
a class implementing a predefined C++ interface, there is no limit to
the complexity of that interface as long as it is only called from C++
code, If you want a Python interface to your generated code, dijitso
is probably not the answer.Although dijitso serves a very specific role within the FEniCS
project, it does not depend on other FEniCS components.The parallel support depends on the mpi4py interface, although mpi4py
is not actually imported within the dijitso module so it would be
possible to mock the communicator object with a similar interface.Feature listDisk cache system based on user provided signature string (user is
responsible of the quality of the signature)Lazy evaluation of possibly costly code generation through
user-provided callback, called only if signature is not found in
disk cacheLow overhead invocation of C++ compiler to produce a shared library
with no Python wrappingPortable shared library import using ctypesAutomatic compression of source code in the cache directory saves
spaceAutodetect which MPI processes share the same physical cache
directory (doesn’t matter if this is all cores on a node or shared
across nodes with network mapped storage)Automatic avoidance of race conditions in disk cache by only
compiling on one process per physical cache directoryOptional MPI based distribution of shared library binary fileConfigurable parallel behaviour:“root”: build only on single root node and distribute binary to
each physical cache directory with MPI“node”: build on one process per physical cache directory“process”: build on each process, automatic separation of cache
directories
Package: dijkprofile-annotator
Version: 0.1.2dijkprofile-annotator descriptionAutomatically annotate drijkprofile is qDAMEdit formatAuthor: Jonathan GerbscheidEmail:j.gerbscheid@hetwaterschapshuis.nlOnline ToolA web version of this tool is available at:https://huggingface.co/spaces/jgerbscheid/dpa-exampleThe availability of this tool is not currently guaranteed and it's location might change in the future to a different adress.InstallWarningThis package will install pytorch to run the neural network for prediction. If you wish to use your own pytorch installation or modify the code in any way I recommend cloning the repository and installing locally:https://gitlab.com/hetwaterschapshuis/kenniscentrum/tooling/dijkprofile-annotator/-/tree/master/I recommended installing the package in a fresh conda environment to avoid conflicts with already other installed packages.Install directly from PiPI with pippip install dijkprofile-annotatorInstalling locally:git clone git@gitlab.com:hetwaterschapshuis/kenniscentrum/tooling/dijkprofile-annotator.git
cd dijkprofile-annotator
pip install -e .UsagebasicAfter installation you can use the command line interface
to annotate a single file, call the annotator with the to be labeled file and desired output file:dijkprofile_annotator -i inputfile -o target_outputfileIt also possible to use the web interface, the following command will start a gradio app that can be accessed in a browser:dijkprofile_annotator-guiYou can also import the module in a python script and call it from there:import dijkprofile_annotator

input_filepath = "/home/documents/surfacelines.csv"
target_filepath = "/home/documents/predicted_characteristpoints.csv"

dijkprofile_annotator.annotate(input_filepath, 
                               target_filepath)Detailed ExampesSee the example notebooks at:https://gitlab.com/hetwaterschapshuis/kenniscentrum/tooling/dijkprofile-annotator/-/tree/master/notebooksfor examples on how to use the package.
Package: dijkstra
DijkstraPackage author: Jukka Aho (@ahojukka5,ahojukka5@gmail.com)dijkstra is a native Python implementation of famous Dijkstra's shortest path
algorithm. The implemented algorithm can be used to analyze reasonably large
networks. The primary goal in design is the clarity of the program code. Thus,
program code tends to be more educational than effective.Project source code is licensed undet MIT license. The source code of the
project is hosted on on GitHub:https://github.com/ahojukka5/dijkstra.
Releases of this package are hosted in PyPi, where they can be easily accessed
usingpip:https://pypi.org/project/dijkstra/.Installing packageTo install the most recent package from Python Package Index (PyPi), use git:pipinstalldijkstraTo install the development version, you can install the package directly from
the GitHub:pipinstallgit+git://github.com/ahojukka5/dijkstra.gitUsagePackage implements two classes,DijkstraSPFandGraph. The above example can
be solved with the following code:S,T,A,B,C,D,E,F,G=nodes=list("STABCDEFG")graph=Graph()graph.add_edge(S,A,4)graph.add_edge(S,B,3)graph.add_edge(S,D,7)graph.add_edge(A,C,1)graph.add_edge(B,S,3)graph.add_edge(B,D,4)graph.add_edge(C,E,1)graph.add_edge(C,D,3)graph.add_edge(D,E,1)graph.add_edge(D,T,3)graph.add_edge(D,F,5)graph.add_edge(E,G,2)graph.add_edge(G,E,2)graph.add_edge(G,T,3)graph.add_edge(T,F,5)dijkstra=DijkstraSPF(graph,S)After running an algorithm, the shortest distance to each node, starting fromS, is available:print("%-5s%-5s"%("label","distance"))foruinnodes:print("%-5s%8d"%(u,dijkstra.get_distance(u)))label distance
S            0
T           10
A            4
B            3
C            5
D            7
E            6
F           12
G            8Also, we can extract the path. From S to T, the path is:print(" -> ".join(dijkstra.get_path(T)))S -> D -> TIt's not mandatory to useGraph. To use your own data structure for graph, you
need to subclassAbstractDijkstraSPFand implement two functions connecting
graph object to the shortest path finder algorithms:get_adjacent_nodesandget_edge_weight. For example, implementation ofDijkstraSPFusingGraphis the following:classDijkstraSPF(AbstractDijkstraSPF):@staticmethoddefget_adjacent_nodes(G,u):returnG.get_adjacent_nodes(u)@staticmethoddefget_edge_weight(G,u,v):returnG.get_edge_weight(u,v)Referenceshttps://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
Package: dijkstra-tg
Dijkstra's Algorithm ImplementationA simple Dijkstra's Algorithm implementationInstallationUse the package managerpipto install the package.pipinstall-ihttps://test.pypi.org/simple/dijkstras-algorithm-TOMG-AUsagefromdijkstraimport*NodeA=Node("A")graph=Graph(NodeA)dist,prev,_=Dijkstra(graph,NodeA)LicenseReleased underMITby@TOMG-A.
Package: diki-translate
diki_translateModuł Python'a pozwalający na tłumaczenie z polskiego słownikadiki.pl.Instalacjapip install diki_translateOpis funkcjiModuł zawiera klasęDikiz funkcjądiki.translation(word, exact_word = 1)word, akceptuje string, który masz zamiar przetłumaczyć.exact_word, opcjonalny argument akceptujący int (domyślnie 1), określający czy funkcja ma zwrócić dokładne tłumaczenie słowa, np. czy dla słowa 'used' mają zostać wyświetlone tłumaczenia słowa 'use'.Przykłady użyciaWszystkie operacje są zaimplementowane w klasieDiki.Wymaga ona podania języka, na który masz zamiar tłumaczyć.fromdiki_translateimportDikidiki=Diki("english")Wszystkie dozwolone języki to:
"english", "german", "spanish", "italian", "french".Przykłady tłumaczenia:>>>list(diki.translation('used'))['używany','przyzwyczajony','przywykły']>>>list(diki.translation('used',0))['używany','przyzwyczajony','przywykły','używać','korzystać (np. z telefonu, toalety)','zużywać','wykorzystywać (np. kogoś do swoich celów)',...]Funkcja zwraca iterator by nie żądać więcej wyników niż trzeba.
Package: dikort
Dikort: git commit message format checking toolThe tool that helps you make commit message in your repository clear.Key FeaturesWide check list: author name, email, trailing periods, capitalize sentence, singleline summary, singoff, gpg, regex.Checks any commit range: acceptable for both CI and pre-commit hook usageSeparate rules for both: merge and regular commitsSupport all available python versions: 3.6+Technical Requirements/InstallationPre-requirementsInstall any supported python distribution (for now it's 3.6+), and pip package management tool. Also make sure you have git installedExamples:Ubuntu/Debiansudoaptinstallpython3python3-pipgitCentOS/RedHat/Fedorasudoyuminstallpython3gitInstallationBy default, pip tries to install package directly to you system. You may need to use sudo to achieve thissudopip3installdikortThe more right way is toinstall to your home directory. But be sure you have$HOME/.local/binat your$PATHvariablepip3install--userdikortRunning and ConfiguringDikort is a command line tool. To see all available options with explanation hitdikort -h.
The only one unnamed option is commit range in the notation of"<commit1>..<commit2>", where"commit1"and"commit2"are any of:
hash, branch, tag, HEAD pointer.ExamplesCheck last commit. Use this in git pre-commit hookdikortHEAD~1..HEADCheck last 10 commitsdikortHEAD~10..HEADCheck all commits in fix-123 branchdikortmaster..fix-123Configure through command linedikort--enable-length--enable-capitalized-summary--min-length=20--max-length=72HEAD~5..HEADGet log and save it (DEBUG mode)dikort--enable-logging--logging-level=DEBUG2>debug.logRun in dockerAlso you can run inside docker. Just mount your repository to container and tell dikort where to find.dockerrun-v`pwd`:/tmp/repoweastur/dikort:latest--repository=/tmp/repo--enable-lengthFile configurationRefer toconfig example, as a full configuration file. By default, config searched at./.dikort.cfgDevelopment StatusDikort is in active development and accepts contributions. See ourContributingsection below for more details.We report new releases informationhere.How to contributeFork, clone, setup development environment.No third-party build or test toolsneed to be insttalled at your system.python3-mvenv.venv
../.venv/bin/activate
pipinstallsetuptoolswheel
pipinstall-e'.[dev]'After that you'll have dikort and all development tools installed into virtualenv. Just run heredikortto execute your development version.
Hack, then make PR. Don't forget to write unit tests, and check your code:dikort
flake8dikort
isortdikort
blackdikort
coveragerun-munittestdiscover
coveragereportOr you can just install git-hooksGit hooksln-s-r-t./.git/hooks/./hooks/*LicenseMIT, seeLICENSE.
Package: dikson
libpythonproMódulo para exemplificar construção de projetos Python no curso PyToolsNesse curso é ensinado como contribuir com projetos de código abertoLink para o cursoPython ProSuportada versão 3 de PythonPara instalar:python3 -m venv .venvsource .venv/bin/activatepip install -r requirements-dev.txtPara conferir qualidade de código:flake8Tópicos a serem abordados:GitVirtualenvPip"""
Para instalar o conteudo\dependencias Listadas em Requirements.TXT, use o
seguinte comando:pip install -r requirements.txtOu o endereço de onde se encontra o requirements.txtCom isso não precisamos manadar o conteudo da pasta .venv (Que contem as
dependencias) para o GitHyb, mas mandamos só o requirements.txt que tem o
nome de todas as dependencias que o projeto necessita para rodar.A linha:-r requirements.txtDentro de requirements_c_flake8.txt   -> Faz com que o conteudo de requirements.txt
seja também instalado, se o requirements_c_flake8.txt for instalado com o
comando   pip install -r requirements_c_flake8.txt
"""
Package: dikt
Dictionary read on diskQuery items out-of-memory from a dictionary that would take to long to open, or one that doesn't fit in RAM, with Dikt.Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.InstallingYou can install the method by typing:pip install diktBasic usageimportdiktimportrandom# generate a dictionary with 1 million entriesN=1000000data={# key can be anything you want# values will be "eval"-ed by Python"key_"+str(i):list(range(i,i+100))foriinrange(N)}# persist to dictionary using diktdikt.dump(data,"data.dikt")deldata# load filedata=dikt.Dikt("data.dikt")# get item without loading the whole file in RAMprint(data["key_125"])# or get multiple items at once (here 10k)keys=[f"key_"+str(random.randint(0,N-1))foriinrange(10000)]print(data[keys][0])AuthorsMaixent Chenebaux
Package: dilami-calendar
python-dilami-calendarInstallpipinstalldilami-calendarUsageGet current datetime in Dilamifromdilami_calendarimportDilamiDatetimeprint(DilamiDatetime.now())Convert Gregorian datetime to Dilamifromdatetimeimportdatetimefromdilami_calendarimportDilamiDatetimegregorian_datetime=datetime(2018,2,1)dilami_datetime=DilamiDatetime(gregorian_datetime)Convert Dilami to Gregorian datetimefromdilami_calendarimportDilamiDatetimedilami_datetime=DilamiDatetime(1591,6,28)gregorian_datetime=dilami_datetime.to_datetime()Read attributesfromdilami_calendarimportDilamiDatetimed=DilamiDatetime().now()print(d.year,d.month,d.day,d.hour,d.minute,d.second)Set time-zoneimportpytzfromdilami_calendarimportDilamiDatetimed=DilamiDatetime(tzinfo=pytz.timezone('Asia/Tehran')).now()print(d)Maybe You LikePHP Dilami CalendarC++ Dilami CalendarArduino Dilami Calendar.Net Dilami Calendarتقویم دیلمیCreditshttps://github.com/pylover/khayyamwiki:گاه‌شماری_گیلکی