Saravanan666/pypi-org huggingface dataset:
Package: dyntftpd
dyntftpdA simple, extendable Python implementation of a TFTP server.Features:Easily customizable (override dyntftpd.TFTPServer and dyntftpd.handlers.*)Can act as a HTTP proxy. The TFTP client can request a HTTP url, the TFTP
server downloads and returns it.Code is mostly unit tested and easy to readLimitations:Only handle RRQ requestsDon’t drop privileges after creating the listening socket :-(No documentation but pydocChangelog0.4.0 (2015-04-16)In HTTP handler, the cache filename contains client’s source port and human
readable datetime, making debugging easier.We no longer create a thread for each request.API break: move load_file and unload_file from TFTP handlers to Session.Use CleverHandler instead of FileSystemHandler by default.Free resources if client disconnect before completing a transfert.0.3.0 (2015-02-05)Add unload_file callback in TFTPUDPHandler, called when the transfer of a
file is over and successful.Remove cache files for successful transfers in HTTPHandler.0.2.1 (2014-11-06)Create HTTPHandler.Create CleverHandler to dispatch to HTTPHandler or FileSystemHandler
depending on the requested file.0.2.0 (2014-10-13)Use ThreadingMixin to serve multiple requests at the same time.Accept option blksize.0.1.1 (2014-09-29)Accept, and ignore extra request options.0.1.0 (2014-09-08)Initial release.Only accept TFTP read requests.
Package: dyntrack
DynTrackPython package for the study of particle dynamics from 2D tracksInstallationpipinstall-UdyntrackUsageimportdyntrackasdtDT=dt.ut.load_data("tracks.csv","Position X","Position Y","Parent","Time","background.tiff")dt.tl.vector_field(DT)dt.pl.vector_field(DT)dt.tl.FTLE(DT,20000,5)dt.pl.FTLE(DT)dt.tl.fit_ppt(DT,seed=1)dt.pl.fit_ppt(DT)WorkflowSource build and run issues with windowsIf missing DLL errors occurs while running, or gcc is not available while building from source please install MinGW-w64:chocoinstallmingwCitations and used worksVector field buildingThe functiondyntrack.tl.vector_fieldusesvfkmto generate vector fields (seelicense),
please cite the related study if you use it:Ferreira, N., Klosowski, J. T., Scheidegger, C. & Silva, C.
Vector Field k-Means: Clustering Trajectories by Fitting Multiple Vector Fields.
Comput. Graph. Forum 32, 201–210 (2012).FTLE scalar field generationCode fromdyntrack.tl.FTLEhave been adapted and optimized fromRichard
Galvez's
notebook.Principal tree fitting with SimplePPTCode fromdyntrack.tl.fit_pptuses SimplePPT algorithm to fit principal trees on each frames.
SimplePPT has been described in the following paper:Mao et al. (2015), SimplePPT: A simple principal tree algorithm
SIAM International Conference on Data Mining.
Package: dyntripy
DynTriPyA package for detecting dynamic triggering.InstallRun the following code in the terminal:pip install dyntripyUsageTriggeringclassTriggeringis the implement of HiFiYun et al., 2019to detect dynamic triggering. An instance should be defined firstly by passing an input file containing all parameters used in the detection process.We provide some test data, examples of input file and performing script ofdyntripyonour github. Please download and run them to test whether thedyntripypackage can perform normally.Detailed descriptions of the key words in the input file are as follows:"data_source""station_file": file containing station names"waveform_path": folder of raw sac/mseed data"response_file": file of PZ files summary"remote_earthquake_catalog": catalog file of remote earthquakes"net_database""days": [M_1, M_2]; power integrals of M1 days before and M2 days after the dates of distant earthquakes are computed"time_segment": length of time segment"frequency_segment": [min, step, max]; minimum (min), segment length (step), and maximum (max) of the frequency segments"database_path": path to store the power integral database"net_ratio""RE_path": folder to store the logarithmic ratio values of the remote earthquakes"background_days": [N_1, N_2]; select N_1 days before and N_2 days after the dates of distant earthquakes as background days"background_catalog": catalog file of the virtual events in background days"RB_path": folder to store the logarithmic ratio values of the background days"net_cl""matched_ratio_path": folder to store the matched ratio of remote earthquakes and background days"cl_path": folder to store the confidence levels"threshold": threshold of confidence level to identify triggering"figure_path": folder to store the figures about the distribution of the logarithmic ratio values for each remote earthquake at each station. If don't want to plot these figures, just set this parameter as "None".Utilitydyntripy.utils.gen_time_windows(catalog_file=None, reference_lat=None, reference_lon=None, tb=18000, te_b_vel=5.0, te_e_vel=2.0, out__file=None)Generate a class of $T_b$ and $T_e$, and output a catalog of remote earthquakes with origin time, start and end of $T_b$ and $T_e$.Parameters:catalog_file: strThe raw catalog of remote earthquakes with source locations.reference_lat: floatThe latitude of the reference point in the study area.reference_lon: floatThe longitude of the reference point in the study area.tb: floatThe length of $T_b$ in seconds.te_b_vel: floatThe velocity of a surface wave whose arrival is the start of $T_e$.te_e_vel: floatThe velocity of a surface wave whose arrival is the end of $T_e$.out_file: str
The catalog of remote earthquakes with the origin time, start and end time of $T_b$ and $T_e$.Returns:None
Package: dynuipv4update
Updates the Dynamic DNS (DDNS) record for a given subdomain and domain using the Dynu APITested against Windows 10 / Python 3.10 / Anacondapip install dynuipv4updateUpdatetheDynamicDNS(DDNS)recordforagivensubdomainanddomainusingtheDynuAPI(https://www.dynu.com/).ThisfunctionsendsarequesttotheDynuAPItoupdatetheIP(v4only!!)addressassociatedwiththespecifiedsubdomainanddomainusingtheprovidedcredentials.Itcanbeusedasaone-timecallorasabackgroundthreadthatperiodicallyupdatestheIPaddress.Args:apikey(str):TheAPIkeyforauthenticationwiththeDynuAPI.subdomain(str):Thesubdomaintoupdate(e.g.,'bububaba'in'bububaba.ddnsfree.com').domain(str):Thedomaintoupdate(e.g.,'ddnsfree.com').password(str):ThepasswordforauthenticationwithDynu,usedtogenerateapasswordhash.as_thread(bool,optional):IfTrue,runtheupdateasabackgroundthread.DefaultisTrue.frequency(int,optional):Thefrequency(inseconds)atwhichtoupdatetheIPaddress.Ignoredifas_threadisFalse.Defaultis30seconds.print_update(bool,optional):IfTrue,printupdateswhentheIPaddressischanged.Ignoredifas_threadisFalse.DefaultisTrue.Returns:Ifas_threadisTrue,returnsathreadobjectrepresentingthebackgroundupdatetask.Ifas_threadisFalse,returnsthecurrentIPaddressforthespecifiedsubdomainanddomain.Example:subdomain=r"bababu"domain="ddnsfree.com"apikey="xxxxxx"sleep_ip_update=30dyn_password=r"xxxxx"# one time callupdatedip=update_dynamic_dns(apikey=apikey,subdomain=second_level_domain,domain=top_level_domain,password=dyn_password,as_thread=False,frequency=30,print_update=True,)print(updatedip)# as threadupdate_dynamic_dns(apikey=apikey,subdomain=second_level_domain,domain=top_level_domain,password=dyn_password,as_thread=True,frequency=30,print_update=True,)print(ipconfig.allipscans[f"{second_level_domain}.{top_level_domain}"])# ips are stored here when you use as_thread=True
Package: dynu-renew
dynu-renewA Python module to renew public IP address associated with aDynudomain.This Python module, through the "renew_domains_ip" function, retrieves the current public IP address, stores it in a localSQLitedatabase, and communicates it toDynu.Quick StartFirst you need to download the "dynu-renew" package, for example viapip:pip install dynu-renewAt this point you need to create the "instance" folder:mkdir instanceAnd create the "config.py" file inside, taking inspiration from what you can find inside the "configs" folder of this repo.In the "DYNU_PASSWORD" field I recommend you enter theDynu IP Update Passwordinstead of the Dynu account access password, because theDynu IP Update Passwordhas limited privileges.Finally, to start it viaCLIsimply send the command:python -m dynu_renewIf the output is empty, then the IP renewal was successful, otherwise the error received from theDynuAPI is returned.I recommend you add scheduled execution ofdynu-renewby adding it to thecrontab, as follows:crontab -eThen inserting a new line like this:*/5 * * * * python -m dynu_renew >> ~/dynu_renew.log 2>&1
Package: dynwidgets
This widget was based on a quickstarted project posted to the TurboGears mailing list (http://groups.google.com/group/turbogears/browse_thread/thread/148053c87b5c42e8/d2e9a7508d8c85dd?lnk=gst&q=&rnum=19) and encapsulated as a TurboGears widget for better reuse.
Package: dypend
dypenddypendLoad dependent libraries dynamically.A few days ago, I encountered many users feedback in an open source project. The Problem is they can not install the dependencies, such as executepip install -r requirements.txtbut nothing happened.There are many problems like the wrong config of env that can cause this result and it's troublesome to check them one by one.To solve this problem once and for all, we usually go tosite-packagesand put the required packages in the project root directory.it's crude, not elegant.So I wanted to load packages dynamically. if package do not exist, usepipto download them.I searched Google roughly, it seems no one have mention this method, and I feel it's convenient to use, so I share it.Although dypend is packaged for everyone to download, however that it depends on pip, which is against the intention of doing dynamic dependencies.So I recommend using theQuick Start - Run by injecting codeapproachQuick startRun bypip installDownload thedypendpackage fromPyPI.pipinstalldypendFreezerequirements.txtfile.pipfreeze>requirements.txtimportdypendat the top of the project's entry file, without changing any other code.importdypenddypendwill check packages inrequirements.txtis available or not in your Python environment, if not,dypendwill callpipto download them.Run by injecting codeFreezerequirements.txtfile.pipfreeze>requirements.txtAdd the following code to the top of the project's entry file, without changing any other code.importosimportreREQUIREMENTS=os.getcwd()+'/requirements.txt'defgetDepends():requirements=open(REQUIREMENTS,'r')libs=requirements.readlines()libList=[]forlibinlibs:try:name=re.search("^.+(?===)",lib).group(0)version=re.search("(?<===).+$",lib).group(0)libDict={"name":name,"version":version}libList.append(libDict)except:continuereturnlibListdefimportLib():"""Load python dependent libraries dynamically"""libList=getDepends()frompip._internalimportmainaspip_mainimportimportlibdefinstall(package):pip_main(['install',package])createVar=locals()forlibinlibList:print(lib)try:createVar[lib["name"]]=importlib.import_module(lib["name"])exceptExceptionase:try:install(f'{lib["name"]}=={lib["version"]}')createVar[lib["name"]]=importlib.import_module(lib["name"])exceptExceptionase:print(e)importLibdypendwill check packages inrequirements.txtis available or not in your Python environment, if not,dypendwill callpipto download them.
Package: dypendence
DypendenceDependency Injection over DynaconfUsage exampleExamplesettings.toml[DY.FileStorageService]Type="S3FileStorage"[DY.FileStorageService.LocalFileStorage]some_value="This is Local File Storage"[DY.FileStorageService.S3FileStorage]some_value="This is S3 File Storage"Example application code:fromdypendenceimportDYclassFileStorageService(DY):defsave_file(self)->str:raiseNotImplementedErrordefget_value_from_settings(self):returnself.settings.some_valueclassLocalFileStorage(FileStorageService):defsave_file(self)->str:return'Saved file to local file system'classS3FileStorage(FileStorageService):defsave_file(self)->str:return'Saved file to S3-like storage'if__name__=='__main__':file_storage=FileStorageService(settings_files=['settings.toml'])assertisinstance(file_storage,S3FileStorage)assertfile_storage.save_file()=='Saved file to S3-like storage'assertfile_storage.get_value_from_settings()=='This is S3 File Storage'
Package: dyplot
matplotlib-like plot functions for dygraphs.js c3.js.
Seedygraphs.comandc3js.org.
Interactive out of the box: zoom, pan and mouseover are on by default.
Drag your mouse to zoom in and double click to zoom out.
You can clone the source code fromhttps://github.com/blacksburg98/dyplotThe document ishttp://dyplot.readthedocs.org/The series needs to be pandas.Series
Package: dyrkdevice
Dyrk DeviceThis library helps implement a dyrk device in the ecosystem of dyrk.ioThe library takes care of connection and communication with the dyrk host, and leaves the implementation of the functions to the userGetting startedInstalling$ pip install dyrkdeviceimplementing a devicefrom dyrkdevice.basicDyrkDevice import BasicDyrkDevice

device = BasicDyrkDevice()

# reacts to the event with name "output_event"
@device.event(eventName="output_event")
def output(output_state: list):
    print("output event invoked")

# Adds metadata fields to the returned dictionary and
# sends it via mqqt every 10 second
@device.measure(measureName="fakeMeasure", interval=10)
def fake():
    return {
        "temperature": 22,
        "pressure": 1000,
        "humidity": 55,
    }

# In case of custom events or overwriting of behavior
@device.eventParser(eventName="customEvent")
def customEventParser(self, event: dict):
    return event["customField"]

@device.event(eventName="customEvent")
def custom(customField: str):
    print("custom event invoked")


device.run()
Package: dysco
Dysco - Dynamic Scoping in PythonInstallation|Development|ContributingDysco is a lightweight Python library that bringsdynamic scopingcapabilities to Python in a highly configurable way.InstallationDysco can be installed frompypyusingpipor any compatible Python package manager.# Installation with pip.pipinstalldysco# Or, installation with poetry.poetryadddyscoDevelopmentTo install the dependencies locally, you needpoetryto be installed.
You can then run# This is only required if you're not using poetry v1.0.0 or greater.# It tells poetry to place the virtual environment in `.venv`.poetryconfigsettings.virtualenvs.in-projecttrue# Install all of the dependencies.poetryinstallto install the project dependencies.The library is tested against Python versions 3.7 and 3.8.
These are most easily installed usingpyenvwith the following command.# Install the supported Python versions.pyenvinstall--skip-existing3.7.5
pyenvinstall--skip-existing3.8.0Testing, linting, and document generation can then be run viatox.
The baretoxcommand will run everything in all environments, or you can break it down by Python version and task.
For example, you could run the individual Python 3.8 tasks manually by running the following.# Install the project dependencies in `.tox/py38/`.tox-epy38-init# Run black, flake8, isort, and mypy.tox-epy38-lint# Run the tests and generate a coverage report.tox-epy38-test--coverage## Build the project documentation.tox-epy38-docsDeploymentYou first need to configure your credentials with poetry.poetryconfighttp-basic.pypiintoli<pypi-password>You can then use invoke to bump the version number, commit the changes, tag the version, and deploy to pypi.# Bumps the patch version and deploys the package.# Valid options are major, minor, and patch.invokebumppatchContributingContributions are welcome, but please follow these contributor guidelines outlined inCONTRIBUTING.md.LicenseExodus is licensed under aBSD 2-Clause Licenseand is copyrightIntoli, LLC.
Package: dys-connector
dys-connectorLogo DYS (Dokuman Yonetim Sistemi) API Python ImplementationPython Package:https://pypi.org/project/dys-connectorQuick Startfromdys_connector.dys_api_managerimportDYSManagerimportjsonidm_token="XXXXXXXXXXXXXXXXXXXXXX"dys_base_url="https://DYS_BASE_URL"manager=DYSManager(dys_base_url,idm_token)# Check state of DYS. FINE-WARNING-FAILUREstate=manager.check_state()# Post Content to DYSparent_folder_cid="111111111111111111111"doc_tag_id="123123123123"doc={"file":open_file("testdoc1.html"),"filename":"testdoc1.html","metadata":None}f=[("file",(doc["filename"],doc["file"],"text/html"))]dto={"name":"testdoc1.html","tagIds":[doc_type_id],"varValues":{"meta1":"value1","meta2":"value2"},"documentTypeIds":[]}payload={"uploadDocumentDTO":json.dumps(dto)}res=manager.post_content(parent_folder_cid,payload,f)print(res.text)# Get and update document metadatadoc_cid="abd123123123abc123123123"meta=manager.get_doc_metadata(doc_cid)external_url=manager.generate_external_share(doc_cid)meta['doc_url']=external_urlmeta['dys_cid']=cidmanager.update_metadata(cid,meta,doc_type_id_confluence)# Copy and rename documentnew_folder_cid="123newfolder123123123"res=manager.copy_document(doc_cid,new_folder_cid)res2=manager.rename_document(json.loads(res.text)["cid"],"new_doc_name")
Package: dyscord
dyscordA simplistic implementation of the discord API.MainDevCurrent StatusVery much an active WIP. The API to this library is not at all locked down. Users can expect aggressive changes to the API until we hit v1.0.0DocumentationDocumentation can be found over atRead The Docs.We are followingGoogle Styledocstring patterns.CommunityCome talk on theDyscord subreddit, or theDyscord discord!ChangelogSee theChangelog.
Package: dysh
dyshdyshis a Python spectral line data reduction and analysis program for singledish data with specific emphasis on data from the Green Bank Telescope.  It is currently under development in collaboration between theGreen Bank Observatoryand the Laboratory for Millimeter-Wave Astronomy (LMA) atUniversity of Maryland (UMD).  It is intended to be a full replacement for the GBO's current reduction packageGBTIDL.Getting StartedInstallationdysh requires Python 3.9+ and recent versions ofastropy,numpy,scipy,pandas,specutils,  andmatplotlib.With pip from PyPidysh is most easily installed withpip, which will take care of any dependencies.  The packaged code is hosted at thePython Packaging Index.$pipinstalldyshFrom GitHubTo install from github without creating a separate virtual environment:$gitclonegit@github.com:GreenBankObservatory/dysh.git$cddysh$pipinstall-e.If you wish to install using a virtual environment, which we strongly recommend if you plan to contribute to the code, see Development.Reporting IssuesIf you find a bug or something you think is in error, please report it on
thegithub issue tracker.
(You must have aGithub accountto submit an issue)DevelopmentHere are the steps if you want to develop code for dysh. We usehatchto manage the build environment.
The usual caveats apply how you set up your python development environment.Clone the repo and install hatch.$gitclonegit@github.com:GreenBankObservatory/dysh.git$cddysh$pipinstallhatchHatch will default to using the system Python if there's noHATCH_PYTHONenvironment variable set. To use a specific version of Python, add the following line to your~/.bash_profile:export HATCH_PYTHON=/path/to/bin/pythonThen source the new profile to apply the changes.$source~/.bash_profileCreate and activate a virtual environment with hatch and install the packages required for development.
The virtual environment will be created the first time; subsequent invokinghatch shellwill simply load the created environment.cdi$hatchshell(dysh)$pipinstall-rrequirements.txtBuild and install the package(dysh)$hatchbuild(dysh)$pipinstall-e.You can exit this environment (which effectively had started a new shell) just exit:(dysh)$exitEach time when you come back in this directory without being in this virtual environment, you'll need to load the virtual environment$hatchshellNotice you can ONLY do that from this directoryTestingWe use pytest for unit and integration testing.  From the top-level dysh directory, run:$pytest
Package: dyslexic-readability
Dyslexic Readability PackageA readability scoring library tailored to the specific needs of Turkish dyslexic readers.InstallThe package is available on PyPI. Simply install it with pip:pipinstalldyslexic-readabilityDependenciesThis project uses the following python libraries. Please use Python3+.nltknumpyeditdistanceBasic Usagefromdyslexic_readabilityimportdyslexic_scores,readability_scoresstory=("Ormanların birinde bir sivrisinek yaşarmış."" Bu sivrisinek tüm hayvanları rahatsız edercesine kral olduğunu iddia ediyormuş."" Her önüne gelen hayvana kafa tutuyormuş. Yine hayvanlara laf ederken sıra kurbağaya gelmiş."" Kurbağa ona hayvanların kralının aslan olduğunu söylemiş. Buna sinirlenen sinek aslanın yanına gitmiş."" Aslan bir ağacın dibinde uyukluyormuş. Gidip başında vızıldayarak kral olduğunu iddia etmiş."" Aslanı sinir edince aslan sineğe pençe sallamış. Ama ıskalayınca sinek daha da uğraşmaya başlamış."" Aslan bir daha sinir olunca yine pençe sallamış ama tutturamamış."" Sinek iyice şımarmaya başlamış, kulağının dibine vızıldayarak daha da sinir bozmaya çalışıyormuş."" Aslında hedefine ulaşması için son bir şey yapması lazımmış. Aslana zarar vererek üstünlüğünü kanıtlayacağını düşünüyormuş."" Bunun da ardından sinek gidip aslanın burnunu iğnesi ile sokmuş. Aslan ise öfkelenerek kükremiş."" Sinek oradan uzaklaşarak aslanı yendiği için mutlu davranıyormuş. Örümcek ağına yakalanana kadar sürecekmiş bu mutluluğu."" Örümcek ağına yakalanınca kurtulamamış. Yardım çığlıkları atınca aslan gelip onu kurtarmış."" Bu da sineğe ders olmuş ve bir daha hiç kral olduğunu iddia etmemiş.")obj=dyslexic_scores.DyslexicScores(story)obj_r=readability_scores.Readability(story)print("Dyslexic Score:  ",obj.overall_dyslexic_score(),"Atesman Score: ",obj_r.Atesman(),"Overall Score:  ",obj.overall_calculated_score(),)
Package: dyspatch
DyspatchA simple package that implements basic events handling in Python.Installationpip install dyspatchUsageA basic example is as follows:importdyspatchusers=[]defon_room_join(user):print(f'{user}joined the room.')users.append(user)print(f'We now have{len(users)}users')events=dyspatch.Events()events.add_listener('room_join',on_room_join)events.dispatch('room_join',args=['Alex'])events.dispatch('room_join',args=['Bob'])The output is like this:Alex joined the room.
We now have 1 users
Bob joined the room.
We now have 2 users
Package: dystopia
dystopiaUse permitted according to the terms of use and conditions set by the attached license.A word from the author!The library itself, it's maintenance, updates and stability, logo, videos, promotional materials and everything associated with dystopia are done byDavid KundihfromCroatia.Hi! :wave:My name isDavid Kundihand I am aMaster of Engineering in Sustainable Mobility and Logistics, currently specializing inDigital Transformation of Traffic and Logistics using Python.My latest projects:vandaldualitylogisticsuninPeople shine the brightest when they seek to understand what kind of love sustains them.CHANGELOGas dystopia0.0.1 (29/10/2022)initial release.
Package: dysweep
DysweepDysweep is a Python library enhancing the functionalities of theWeights and Biases sweep library. It allows entire experiments to be executed using a configuration dictionary (YAML/JSON).FeaturesCheckpointing for the Sweep Server: Dysweep introduces checkpointing that allows resuming certain runs, useful when only a small fraction of runs fail, eliminating the need to re-run the entire sweep.Running Sweeps Over Hierarchies: Dysweep supports hierarchically structured parameters, thereby eliminating the need for hard-coding the selection between different classes.Dysweep is inspired byDyPy, offering a versatile configuration set that empowers defining experiments at any layer of abstraction.ApplicationsDysweep aids in large-scale hyperparameter tuning across various models/methods and running models over different configurations and datasets. It provides a systematic way to define a sweep in WandB, allowing parallel execution of experiments.