Saravanan666/pypi-org huggingface dataset:
Package: yacryptopan
# Yet another Crypto-PAn implementation for Python## OverviewThis package provides a function to anonymize IP addresses keeping
their prefix consistency.  This program is based on the paper
“Prefix-Preserving IP Address Anonymization: Measurement-based
Security Evaluation and a New Cryptography-based Scheme” written by
Jun Xu, Jinliang Fan, Mostafa H. Ammar, and Sue B. Moon.  The detailed
explanation can be found in [Xu2002].This package supports both IPv4 and IPv6 anonymization.## Usage>>> from yacryptopan import CryptoPAn
>>> cp = CryptoPAn('32-char-str-for-AES-key-and-pad.')
>>> cp.anonymize('192.0.2.1')
'192.0.125.244'
>>> cp.anonymize_bin(0xc0000201, version=4)
3221257716L
>>> cp.anonymize('2001:db8::1')
'27fe:8bc7:fee:1e:1e1f:f0fe:f0e1:83fd'
>>> cp.anonymize_bin(0x20010db8000000000000000000000001, version=6)
53161570263948813229648829710638089213L## CodeThe source code is available athttps://github.com/keiichishima/yacryptopanThis module works with Python3.## Bug ReportsPlease submit bug reports or patches through the GitHub interface.## References[Xu2002] Jun Xu, Jinliang Fan, Mostafa H. Ammar, and Sue B. Moon,
“Prefix-Preserving IP Address Anonymization: Measurement-based
Security Evaluation and a New Cryptography-based Scheme”, in
Proceedings of the IEEE International Conference on Network Protocols,
Paris, 2002.## ContributorsCornelius Diekmann,https://github.com/diekmannMatteo Pergolesi,https://github.com/TheWall89AaronK,https://github.com/aaronkaplan## AuthorKeiichi SHIMA
/ IIJ Innovation Institute Inc.
/ WIDE project
Package: yacs-stubgen
yacs-stubgenAdd typing support for your YACS config by generating stub file.InstallInstall from PyPI:pipinstallyacs-stubgenOther methodsInstall from this repo directly:pipinstallgit+https://github.com/JamzumSum/yacs-stubgen.gitOr you can download from our GitHub release and install package manually.UsageAuto-GenerateAdd typing support for youryacsconfig by appending just three lines:fromyacs.configimportCfgNodeasCN_C.MODEL.DEVICE='cuda'...# your config items above# this line can be moved to the import headerfromyacs_stubgenimportbuild_pyi# this alias ensure you can import `AutoConfig` and use something like `isinstance`AutoConfig=CN# _C is the CfgNode object, "_C" should be its varname correctly# AutoConfig is an alias of CfgNode, "AutoConfig" should be its varname correctlybuild_pyi(_C,__file__,cls_name='AutoConfig',var_name='_C')Afterany run/import of this file, a stub file (*.pyi) will be generated.
Then you will get typing and auto-complete supportif your IDE supports stub files.Each time you change your config, you have to run/import this file again to apply the changes.Build ScriptWe have provided a script as an entrypoint. Simply runyacstub <file/dir>and it
will generate stub file if one module contains aCfgNodeobject in global scope.>yacstub./conf# specify a directoryINFO:Generatedconf/default.pyi
>yacstub./conf/default.py# specify a fileINFO:Generatedconf/default.pyiSimilarly, each time you change the config, you have to re-run the script to apply the changes.How it worksStub files take precedencein the case of bothfilename.pyandfilename.pyiexists.
Once you pass in the config node, we will iterate over it and generate a stub file then save
it asfilename.pyi(that's why a path is required). Now supporting IDE will detect the stub
file and is able to type-check and intellisense your code.However, the stub file does nothing with actual code executing. If you import the generated
class (default as "AutoConfig"), anImportErrorwill be raised. This time you can add a variable
(aka. type alias) refers toCfgNodein the*.pyfile. We will override the type of this alias
to our generated class ("AutoConfig") in the stub file. Thus you can import the "AutoConfig"
normally and intuitively, while the type alias is treated as "AutoConfig" by IDE but is actually aCfgNodetype.LicenseMITyacsis underApache-2.0
Package: yact
============YACT - Yet Another Config tool============Simple configuration handling for Python applications.------------------------------------------------------.. image :: https://travis-ci.org/dreadpirate15/yact.svg?branch=master:target: https://travis-ci.org/dreadpirate15/yact.. image :: https://coveralls.io/repos/github/dreadpirate15/yact/badge.svg?branch=master:target: https://coveralls.io/github/dreadpirate15/yact?branch=masterYACT is a simple, lightweight, and flexible configuration package for Python applications.It's designed to be as easy as possible to setup configuration for your project without needing tojump through hoops.Examples========**Basic usage:**::import yactconfig = yact.from_file('sample.conf')isinstance(config, yact.Config)>>> True**Modifying and saving:**::config.set('foo', 'bar')print(config['foo'])>>> 'bar'config.save()**Dot notation for nested configs:**::config.set('this.is.nested', True)print(config.get('this')['is']['nested'])>>> True
Package: yacu
Crypto UtilReal time cryptocurrency price data prediction command line utility using machine learning regression. Cross platform compatible on Linux, macOS, and Windows. Written in Python 3.InstallPythonpip3 install yacuorpython3 -m pip install yacuDocker or Podman (CLI ONLY!)docker pull yetanothercryptoutil/yacuorpodman pull yetanothercryptoutil/yacuNOTE:If you use this method, only the CLI features of the program will be
available.Local installation via anaconda (for development)Download and install anacondagit clone https://github.com/1103s/crypto-bot.gitcd crypto-botconda create --name crypto_util python=3.9.7source activate crypto_utilpython3 -m pip install -r requirements.txtUsageGUIDefault:yacuAnaconda:python3 src/gui.pyOnce installed via pip you will be able to initialize the GUI using the commandyacuin the command line.In some cases, such as in Linux Mint installations, this will fail. If the happens it means that.binis not in your path (which you can check usingecho $PATH). Therefore you need to add.binto your path in order to fix this.CLIDefault:yacu-cliPodman:podman run yacuDocker:docker run yacuAnaconda:python3 src/crypto_util.pyLocal command line usagepython3 crypto_util.py --crypto BTC: The basic functionality requires the user to input at least the cryptocurrency symbol. Note that by default images of the data and predictions are saved tofigures/python3 crypto_util.py --crypto ETH --days 10 --lags 80: More specific flags can be specified, such as the number of days into the future to predict the price.python3 crypto_util.py --crypto ETH --days 50 --lags 400: The largerlagsis the longer the training time, but also the higher the accuracy will be.python3 crypto_util.py --ls --source kraken: In order for the user to see what cryptocurrency symbols are available for an API source, the utility allows for this listing argument with no additional flags.python3 crypto_util.py --help: Prints the usage instructions.Docker or podmandocker run yacuorpodman run yacuExample Docker or podman Usagepodman run yacu --crypto ETH: In this case the settings are set to default. However, the cryptocurrency you want to analyze is a required flag.podman run yacu --helpdisplays the usage and required arguments for the utility to work.DocumentationDocumentation can be foundhere.Requirementsdocker, podman, or Python3 and pip (or pip3)Installation problemsOn some Linus distributions the PySide6 import will throw an error like this:ImportError: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28 not foundA possible fix for this issudo apt-get install libc6Future TODOs and improvementsAdd method to save and load previously trained ML model files using the python librarypickle.More color palettes for the MainWindow (variations of dark mode)Add moving averages toggling to graph
Package: yad
Python Yad projectpython-yad is interface to yad for python. Inspired by the PyZenity Project.YAD is a program that will display GTK+ dialogs, and return (either in the return code, or on standard output) the users input.
This allows you to present information, and ask for information from the user, from all manner of shell scripts.
YAD is the fork of Zenity program.YAD source page:http://sourceforge.net/projects/yad-dialog/The API is very simple which has a main class known as YAD.Example:>>> from yad import YAD
>>> yad = YAD()
>>> yad.Calendar()You can even check out the test application ‘gdie’(Gnome-desktop-item-editor) in the terminal.>>> gdieRequirementsPython 3.2 and abovepexpect moduleyad programInstallationCan be installed by using pip:>>> sudo python3 -m pip install yador by manual installation:>>> git clone https://gitlab.com/dvenkatsagar/python-yad.git
>>> cd python-yad/python-yad
>>> python3 setup.py build
>>> python3 setup.py installContact UsIf you guys encounter any bugs, or issues. please contact me via email:Authors:Sagar D V <dvenkatsagar@gmail.com>
Package: yadage
yadage - yaml based adageThis package reads and executes workflows adhering to the workflow JSON schemas defined athttps://github.com/yadage/yadage-schemassuch as the ones stored in the community repositoryhttps://github.com/yadage/yadage-workflows. For executing the individual steps it mainly uses the packtivity python bindings provided byhttps://github.com/yadage/packtivity.Example Workflowcat << 'EOF' > workflow.yml
stages:
- name: hello_world
  dependencies: [init]
  scheduler:
    scheduler_type: singlestep-stage
    parameters:
      name: {step: init, output: name}
      outputfile: '{workdir}/hello_world.txt'
    step:
      process:
        process_type: 'string-interpolated-cmd'
        cmd: 'echo Hello my Name is {name} | tee {outputfile}'
      publisher:
        publisher_type: 'frompar-pub'
        outputmap:
          outputfile: outputfile
      environment:
        environment_type: 'docker-encapsulated'
        image: busybox
EOFYou can try this workflow viayadage-run -p name="John Doe"For more thorough examples, please see thedocumentationPossible Backends:Yadage can run on various backends such as multiprocessing pools, ipython clusters, or celery clusters. If human intervention is needed for certain steps, it can also be run interactively.Published versions of related packages (main dependencies of yadage)packageversionpacktivityyadage-schemasadage
Package: yadage-schemas
yadage-schemasThis package holds JSON schema definitions for preserving individual processing tasks of scientific workflows (referred to "packtivities" since they including information where to find their respective prepackage sofware environments) as well as schemas to define declaratively workflows that orchestrate multiple of these steps using directed acyclic graphs (DAGs)Workflows defined this way can be read and executed by these packages:Packtivity:https://github.com/yadage/packtivityYadage:https://github.com/yadage/yadage
Package: yadd
yaddYet AnotherdictDifferDebug aidyaddhelps you debug your dict differences. It pinpoints the values that are different to aid in debugging.Close enoughYou may have heard the term "close enough for Jazz". Well, that can apply to floating point numbers too. yadda usescmath.isclose()for numbers.Lots of data typesiterablesdictlisttuplenumbersint, float, complex, DecimalstrboolMake your own yadda-yaddayaddhas several parameters, most of which are dependent on the usage model. You may want to consider writing your own
function that callsyaddwith the parameters most appropriate for your usage.Example:fromyaddimportyadddefmy_yadd(*args,**kwargs)->bool:# loosen up the numeric tolerancesreturnyadd(*args,rel_tol=1E-6,abs_tol=1E-9,**kwargs)Related SolutionsDeepDiff
Package: yaddle
Yet Another Data format Description LanguagE@role: admin | author | collaborator | "role with space"

user:
  name: str{3,20}
  age: int{10,200}
  gender: male | female
  roles: [@role]
  description?: str{,200}translated to json-schema{"additionalProperties":false,"definitions":{"role":{"enum":["admin","author","collaborator","role with space"]}},"required":["user"],"type":"object","properties":{"user":{"additionalProperties":false,"required":["name","age","gender","roles"],"type":"object","properties":{"gender":{"enum":["male","female"]},"age":{"minimum":10,"type":"integer","maximum":200},"name":{"minLength":3,"type":"string","maxLength":20},"roles":{"items":{"$ref":"#/definitions/role"},"type":"array"},"description":{"type":"string","maxLength":200}}}}}apiuse load/loads to translate yaddle into json-schemafromyaddleimportload,loadsload(open("some.ydl"))loads("""[str]{,3}""")clicatschema.ydl|python-myaddle.toolmore detailsnumberint{100,200}{"type":"integer","minimum":100,"maximum":200}num{,,0.1}{"type":"number","multipleOf":0.1}stringstr{1,2} /pattern/{"type":"string","minLength":1,"maxLength":20,"pattern":"pattern"}/pattern/{"type":"string","pattern":"pattern"}formatdate-time,email,hostname,ipv4,ipv6,uri%email{"format":"email"}array[str]{1,10}{"type":"array","minItems":1,"maxItems":10,"items":{"type":"string"}}[str|num]{"type":"array","items":{oneOf:[{"type":"string"},{"type":"number"}]}}[str, num]{"type":"array","items":[{"type":"string"},{"type":"number"}}}!for uniqueItems[num]!{"type":"array","items":{{type:"number"}},"uniqueItems":true}objectall properties are required, except those one with a?suffix...to allowadditionalPropertieskey: str
size?: number
...{"type":"object","properties":{"key":{"type":"string"},"size":{"type":"number"},"required":["key"]}"additionalProperties":true}oneOf, anyOf, allOf|for oneOf like@ref | @ref2/for anyOf&for allOfreferencelocal reference@address:
    street_address: str
    city: str
    state: str

billing_address: @address
shipping_address: @address{"additionalProperties":false,"definitions":{"address":{"additionalProperties":false,"required":["street_address","city","state"],"type":"object","properties":{"city":{"type":"string"},"state":{"type":"string"},"street_address":{"type":"string"}}}},"required":["billing_address","shipping_address"],"type":"object","properties":{"billing_address":{"$ref":"#/definitions/address"},"shipping_address":{"$ref":"#/definitions/address"}}}referece remote schema(TBD)@"http://example.com/schema"

@product:
    price: num{0,}
    title: str{,200}referece it in another schema@example: "http://example.com/schema"

products: [@example:product]examplesexample fromhttp://json-schema.org/example2.htmltranslated to yaddle@diskDevice:
    type: disk
    divice: /^/dev/[^/]+(/[^/]+)*$/
@diskUUID:
    type: disk
    label: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/
@nfs:
    type: nfs
    remotePath: /^(/[^/]+)+$/
    server: %host-name | %ipv4 | %ipv6
@tmpfs:
    type: tmpfs
    sizeInMB: int{16,512}

storage: @diskDevice | @diskUUID | @nfs | @tmpfs
fstype?: ext3 | ext4 | btrfs
options?: [str]{1,}!
readonly?: bool
Package: yaddy
yaddyYet Another Domain (Driven) Development librarY for PythonWarning: This repository is in WIP (Work In Progress) state. None
of the APIs are fixed, do not use it in your production environment.yaddy is a library that provides a basis for DDD (Domain Driven
Development) in python. It is mostly developed for my own needs,
but any suggestions are appreciated.TestsHigh-level (acceptance, e2e) tests
could be run with:poetryrunacceptDeveloper (unit) tests could be run
with:poetryrununit
Package: yade
Yet another Django env (yade)Simple library to set Django settings through environment variables in a way, inspired by ASP.NET Core.Examples of variables, which will affect settings:DJANGO__STATIC_URL  # Just string variable
DJANGO__REST_FRAMEWORK__PAGE_SIZE  # Dict value
DJANGO__AUTH_PASSWORD_VALIDATORS__0__NAME  # List valueTrue/False or ints (0,1,2...) values of env variables will be converted to python type (bool or int).
Json like arrays like[1, 2, 3]are supported too.Installationpip install yadeUsageIn settings.py:from yade import update_settings_from_env

ALLOWED_HOSTS = ['*']
...  # Your settings here

update_settings_from_env(locals())
# End of fileNotice: this work only in modules, not in functions!
Package: yadet
YADET (Yet Another Data Extract Tool)A simple and effective Python data extraction tool for getting batch data exports
and store in a simple format.Current functionality is relatively limited with MsSQL Source integration
and File System Target Integration.InstallWith Python 3.7 or greater install the package with simple pip command.pip install yadetUsageImport and load datafromyadet.configimportProjectConfigfromyadet.batchimportProjectBatchRunfromyadet.engineimportSourceMssqlEngine,TargetFileSystemEngineimportosconn_str="<>"project=ProjectConfig(name="example",source_engine=SourceMssqlEngine,source_engine_params={"connection_str":conn_str},target_engine=TargetFileSystemEngine,target_engine_params={"base_directory":os.path.join("data","example"),"compression":"gzip"})batch_run=ProjectBatchRun(project=project)batch_run.run_batch()
Package: yadg
Set of tools to process raw instrument data according to adataschemainto a standardised form calleddatagram, annotated with metadata, provenance information, timestamps, units, and uncertainties. Developed by theMaterials for Energy Conversionlab at Empa (Dübendorf, CH) and by theConCat labat Technische Universität Berlin (Berlin, DE).Capabilities:Parsingtabulated datausing CSV parsing functionality, including Bronkhorst and DryCal output formats.Parsingchromatography datafrom gas and liquid chromatography, including several Agilent, Masshunter, and Fusion formats.Parsingreflection coefficienttraces from network analysers.Parsingpotentiostat filesfor electrochemistry applications. Supports BioLogic file formats.Parsingspectroscopy filesincluding common XPS, XRD and MS formats.Features:timezone-aware timestamping using Unix timestampsautomatic uncertainty determination using data contained in the raw files, instrument specification, or last significant digituncertainty propagation to derived quantitiestagging of data with unitsextensivedataschemaanddatagramvalidation using provided specificationsmandatory metadata (such as provenance) is enforcedThe full list of capabilities and features is listed in theproject documentation.Installation:The released versions ofyadgare available on the Python Package Index (PyPI) underyadg. Those can be installed using:pipinstallyadgIf you wish to install the current development version as an editable installation, check out themasterbranch using git, and installyadgas an editable package using pip:gitclonegit@github.com:dgbowl/yadg.gitcdyadgpipinstall-e.Additional targetsyadg[testing]andyadg[docs]are available and can be specified in the above commands, if testing and/or documentation capabilities are required.Contributors:Peter KrausNicolas VetschAcknowledgementsThis project has received funding from the following sources:European Union’s Horizon 2020 programme under grant agreement No 957189.DFG's Emmy Noether Programme under grant number 490703766.The project is also part of BATTERY 2030+, the large-scale European research initiative for inventing the sustainable batteries of the future.
Package: yadisk-api
# yadisk-apiYandex.disk HTTP API Python libraryGet your access token [here](https://tech.yandex.ru/disk/api/concepts/quickstart-docpage/)Example usage:import yadisk_apidisk = yadisk_api.YandexDisk('my_token')# get info about my diskinfo = disk.get_disk_info()# get meta info about file/directory in my app directory/trashmeta_info = disk.get_meta_info(path='path/to/my/file.jpg',preview_size='100x100',)# get audio files list in my diskfiles_info = disk.get_files_list(limit=50,media_type='audio',)# get last uploaded files listlast_uploaded = disk.get_last_uploaded(limit=10,media_type='video',)# set meta data to file in your app directorysetted_result = disk.set_meta_to_resource('my/file/to/extra/meta/data.txt,data={'Custom Header': 'custom value'},)# upload file to yandex diskwith open('/path/to/my/file.txt', 'rb') as f:disk.upload_file(f,path='app:/directory/file.txt',overwrite=True)# upload file to disk by urldisk.upload_file_from_url('http://example.com/sitemap.xml',path='app:/sitemap_example.xml',)# download file content from yandex.diskcontent = disk.download_file('app:/sitemap_example.xml',stream=False,)# copy resource in diskdisk.copy_resource(from_path='app:/sitemap_example.xml',to_path='app:/sitemap_example_copy.xml',)# move resource in your diskdisk.move_resource(from_path='app:/sitemap_example_copy.xml',to_path='app:/sitemap_example_movied_copy.xml',)# delete resourcedisk.delete_resource('app:/sitemap_example_movied_copy.xml',permanently=False, # to trash)# create folder in your diskdisk.create_folder('app:/new_folder',)# publishdisk.publish_resource('app:/new_folder')# unpublishdisk.unpublish_resource('app:/new_folder')# fully empty trashdisk.empty_trash()# or remove file from trashdisk.empty_trash('app:/sitemap_example_movied_copy.xml')# restore resource from trashdisk.restore_from_trash('app:/sitemap_example_movied_copy.xml')
Package: yadisk-shadow
yadisk-shadowYandex Disk Shared Folders Metadata & Files DownloaderUsageDownload shared folder metadata (file tree):# Full tree metayadisk-shadowMetadata-l"https://disk.yandex.ru/d/XXXXXXXXXXXXXX"-o"metadata.json"# Subfolder metayadisk-shadowMetadata-l"https://disk.yandex.ru/d/XXXXXXXXXXXXXX"-o"metadata.json"-s"/my/shared/subfolder"Download files:yadisk-shadowDownload-d"/my/parent/directory"-m"metadata.json"
Package: yadism
Scope of the projectProvide all necessary tools to compute the DIS structure functions and related objects. This project is linked closely toEKO.InstallationAs a user please usethe released version on PyPI,
through your python package manager, e.g. withpip:pipinstallyadismDevFor development just usepoetry:poetryinstallTo installpoetryand the other recommended tools, follow theinstructions.DevelopmentMembers of the development team should always follow thecontribution
guidelines, to have a uniform strategy in code
development and improve collaboration.Contributing or contacting the authorsFor any kind of interaction consider before to readexternal contribution
guidelines, otherwise just send
an email to the authors:Alessandro CandidoFelix HekhornGiacomo Magni
Package: yadll
YadllYetanotherdeeplearninglab.This is an ultra light deep learning framework written in Python and based onTheano.
It allows you to very quickly start building Deep Learning models and play with toy examples.If you are looking for a light deep learning API I would recommend usingLasagneorkerasinstead of yadll, both are mature, well documented and contributed projects.Read the documentation atRead the docIts main features are:Layers:Input LayerDropout LayerPool LayerConv Layer:ConvPool LayerDense Layer:Logistic RegressionDropconnectUnsupervised Layer:Autoencoder (denoising autoencoder)Restricted Boltzmann MachineRNNLSTMGRUOptimisation:SgdMomentumNesterov momentumAdagradAdadeltaRmspropAdamAdamaxHyperparameters grid searchInstallationgitclonegit@github.com:pchavanne/yadll.gitcdyadllpipinstall-e.ExampleDifferent networks tested on mnist:Logisitic RegressionMulti Layer PerceptronMLP with dropoutMLP with dropconnectConv PoolLeNet-5AutoencoderDenoising AutoencoderGaussian Denoising AutoencoderContractive Denoising AutoencoderStacked Denoising AutoencoderRestricted Boltzmann MachineDeep Belief NetworkRecurrent Neural NetworksLong Short-Term MemoryGated Recurrent unitget the list of available networks:pythonmnist_dl.py--network_listtrainning a model for example lenet5:pythonmnist_dl.pylenet5grid search on the hyperparameters:pythonhp_grid_search.py
Package: yadokari
A python client foryadokari.Installation# python3.5 or higher$pip3installyadokariUsageUsage:yadokari[OPTIONS]COMMAND[ARGS]...Options:--helpShowthismessageandexit.Commands:cal宿の予約状況を表示list宿の一覧を表示meトークンから予約情報を受け取るreserve宿の予約を行うshow宿の詳細URLを表示