Saravanan666/pypi-org huggingface dataset:
Package: ashford
Why ashford?This package provides classes and decorators for a variety of Python implementations of registration, factories, and type validators.Registriesregistered: a decorator that stores a registry in aregistryattribute of the function or class which is wrapped by the decorator.Registrar: a mixin for automatic subclass registration.Factories* `InstanceFactory`: mixin that stores all subclass instances in the `instances` class attribute and returns stored instances when the `create` classmethod is called.
* `LibraryFactory`: mixin that stores all subclasses and subclass instances in the `library` class attribute and returns stored subclasses and/or instances when the `create` classmethod is called.
* `SourceFactory`: mixin that calls the appropriate creation method based on the type of passed first argument to `create` and the types stored in the keys of the `sources` class attribute.
* `StealthFactory`: mixin that returns stored subclasses when the `create` classmethod is called without having a `subclasses` class attribute like SubclassFactory.
* `SubclassFactory`: mixin that stores all subclasses in the `subclasses` class attribute and returns stored subclasses when the `create` classmethod is called.
* `TypeFactory`: mixin that calls the appropriate creation method based on the type of passed first argument to `create` and the snakecase name of the type. This factory is prone to significant key errors unless you are sure of the snakecase names of all possible submitted type names. SourceFactory avoids this problem by allowing you to declare corresponding types and string names.Validatorsbonafide: decorator that validates or converts types based on type annotations of the wrapped function or dataclass (under construction)ashford`s framework supports a wide range of coding styles. You can create complex multiple inheritance structures with mixins galore or simpler, compositional objects. Even though the data structures are necessarily object-oriented, all of the tools to modify them are also available as functions, for those who prefer a more funcitonal approaching to programming.The project is also highly internally documented so that users and developers can easily make ashford work with their projects. It is designed for Python coders at all levels. Beginners should be able to follow the readable code and internal documentation to understand how it works. More advanced users should find complex and tricky problems addressed through efficient code.
Package: ashishbansal-101703113-topsis
A small package that showcases topsis approachThis is a simple package to use topsis(technique for Order of preference by Similarity to Ideal Solution) approach to select best among many things based on different attributes, such as selecting the best Machine Learning algorithms based on correlation,R-square,root mean square error and accuracy. You can use this simple package to get ranks on basis of topsis approach, ypu simply need to pass NumPy array after pre-processing your data along with weights between 0 and 1 and all weights should sum to 1 to get correct results and you need to pass impacts as well in form of '+' or '-' where '+' indicates that you need to maximise value of that particular column and '-' indicates that you need to minimise value of that particular column. After passing all these parameters you will get your rank row.
Package: ash-kms
ash-kmsThe library provides functionality to handle GCP KMS encryption keys and operationsThe library allows the creation of a new key-ring within GCP KMS.The library allows the creation of a new encryption key within GCP KMS.The library provides functionality to encrypt secrets using the specified encryption key.Users can decrypt secrets using the specified encryption key.Installationpipinstallash-kmsUsagefromash_kmsimportEncryptionServicekey_ring_id="test_key_ring_id"key_id="test_key"location_id="global"plaintext="asdf1234"service=EncryptionService(project_id="ash-dev-273120")key_ring_name=service.create_key_ring(location_id=location_id,key_ring_id=key_ring_id)print(key_ring_name)key=service.create_key_symmetric_encrypt_decrypt(location_id=location_id,key_ring_id=key_ring_id,key_id=key_id)print(key.name)ciphertext=service.encrypt_symmetric(location_id=location_id,key_ring_id=key_ring_id,key_id=key_id,plaintext=plaintext)print(f"{ciphertext=}")decrypted_plaintext=service.decrypt_symmetric(location_id=location_id,key_ring_id=key_ring_id,key_id=key_id,ciphertext=ciphertext)print(f"{plaintext=}")assertdecrypted_plaintext==plaintext
Package: ashk-sphinx-theme
this is a rtl theme forSphinx.
i useRead the Docsas a base.InstallationThis theme is distributed onPyPIand can be installed withpip:$pipinstallashk-sphinx-themeTo use the theme in your Sphinx project, you will need to edit
yourconf.pyfile’shtml_themesetting:html_theme="sphinx_rtd_theme"Development:for development first readconfiguring the theme.tip: for upgrade and upload to pypi remember to change the version in both files: setup.cfg & setup.pyuse python3.10make a venv:python3.10-mvenvvevnsourcevenv/bin/activatepipinstall-e'.[dev]'if there was a problem with installation use you may want to use this:npminstallwebpackwebpack-dev-serverwebpack-cli--save-devwebpack-dev-server--open--configwebpack.dev.jspython-mpipinstallbuildtwinenpminstallnpmrunbuildpythonsetup.pysdistbdist_wheelReleasing the themefor release the theme use:rm-rfdist/pythonsetup.pysdistbdist_wheeltwineupload-rpypi--verbosedist/*
Package: ashlang
AshA simple language transpiling to Python or interpreted.
The default implementation of the transpiler and interpreter are written in Python 3.SummaryIntroductionFirst step with Ash
1.A Hello World!
1.B Comments
1.C KeywordsVariables and constantsTypes and operatorsFunctions and proceduresClasses and objectsModulesExceptionsStandard libraryInteracting with PythonLinksConclusionIntroductionTodo1. First steps with Ash1.A Hello, World!This program writes on the standard output the string Hello, World!ash> writeln("Hello, World!")The functionwritelnwrites on the standard output one or more arguments, goes to the next line and come back at its first position, on the left. It takes here only one argument, the string "Hello, World!". The entire line is a statement.This second program below writes on the standard output the stringWhat is your name?then reads a string stored in the variable name.ash> name = read('What is your name?')
ash> writeln("Hello", name)The functionreadreads a string on the standard input. This code is composed of two lines, each line being a statement. But you can write the same example this way also:ash> name = read('What is you name?') ; writeln("Hello", name)This time, we have only one line composed of two statements separated by a;, called thestatement separator. For both ways, the functionwritelnis called this time with two arguments, the string literal"Hello"and the variable name. This function accepts a variable number of arguments.1.B CommentsA comment is a text ignored by the interpreter. It does nothing. The transpiler with recopy the text in the transpiled output.-- This is a comment1.C KeywordsAsh uses 26 keywords which mustn't be used as variable or constant names:Nil literal:nilBoolean literals:true,falseOperators:and,or,not,xorChoice:if,then,elif,else,endLoop:while,do,end,break,nextSubprogram:fun,pro,returnClass:classModule:importExceptions:try,when,finally,raise2. Variables and constantsDeclare and assign a variable:a = 5Declare, assign and restrict a variable to a type:a : int = 5A constant starts with a capital letter and cannot be changed through the execution of the script:A = 53. Types and operatorsintfor integerfltfor floatboolfor boolean"..."or'...'for strings[a, b]for list[a = 5, b = 34]for hash4. Functions and proceduresTodo5. Classes and objectsTodo6. ModulesTodo7. ExceptionsTodo8. Standard libraryTodo9. Interacting with PythonTodo10. LinksTodoConclusionDamien Gouteux 2020
Package: ashlar
ASHLAR: Alignment by Simultaneous Harmonization of Layer/Adjacency RegistrationAshlar implements efficient combined stitching and registration of multi-channel
image mosaics collected using the Tissue-CycIF microscopy protocol[1]. Although
originally developed for CycIF, it may also be applicable to other tiled and/or
cyclic imaging approaches. The package offers both a command line script for the
most common use cases as well as an API for building more specialized tools.[1]Tissue-CycIF is multi-round immunofluorescence microscopy on large fixed
tissue samples. Seehttps://doi.org/10.1101/151738for details.
Package: ashley
Ashley, a self-hosted discussion forum for learningOverviewAshleyis a forum designed to be integrated intoLearning Management Systems(LMS).It is a multi-tenant service intended to be operated independently. It can be integrated to any LMS (likeOpen edXorMoodle), thanks to theLTIstandard.Ashleyis built on top ofDjango-machina, a powerful forum engine forDjango.Quick previewHere is an example integration of Ashley inOpen edX:ContributingThis project is intended to be community-driven, so please, do not hesitate to
get in touch if you have any question related to our implementation or design
decisions.We try to raise our code quality standards and expect contributors to follow
the recommandations from ourhandbook.LicenseThis work is released under the MIT License (seeLICENSE).Getting startedMake sure you have a recent version of Docker andDocker Composeinstalled on your laptop:$docker-vDockerversion18.09.0,build4d60db4

$docker-compose--versiondocker-composeversion1.23.2,build1110ad01⚠️ You may need to run the following commands withsudobut this can be avoided by assigning your user to thedockergroup.Project bootstrapThe easiest way to start working on the project is to use ourMakefile:$makebootstrapThis command builds theappcontainer, installs front-end and back-end dependencies, builds the front-end application and styles, and performs database migrations. It's a good idea to use this command each time you are pulling code from the project repository to avoid dependency-related or migration-related issues.Now that your Docker services are ready to be used, start the service by running :$makerunYou should be able to test the forum athttp://localhost:8090/dev/.
This is the development view that emulates a LTI consumer.Django adminYou can access the Django admin site of the forum athttp://localhost:8090/admin/You first need to create a superuser account.$makesuperuserTroubleshootingElasticSearch service out with an Exit 137$docker-composepsashley_elasticsearch_1   /docker-entrypoint.sh elas ...   Exit 137This is due to a lack of memory.
N.B. for Mac users, the default Docker's configuration is also 2GB which means that Elasticsearch will automatically exit.To fix this issue, you need to upgrade your default configuration.
Package: ashmail
AshMailv2.1.2The free and simple mass emailing systemUsageFiles neededconfig.yml- the configuration filecontent.html- the html content of the email with variables inside squiggled bracketsrecievers.csv- a file with names and emailsNote: all of these files with some example data can be found in the_tests_/directoryData required in filesconfig.ymlcontent: name of the html file with the content to send in the emailrecivers: name of the csv file with data with names and emailsfrom: the address to send the email frompassword: the password of the aforementioned emailsubject: the subject of the emailcontent.htmlAn html file with content. Variables can be inside double squiggled brackets:<h1style="color: red;">Hello {{ name }}</h1><h3style="color: blue;">Nice email! {{ email }} looks so professional</h3>recievers.csvA csv file with names and their corrosponding emailsname,email
Mr. Example,example@example.comRunning AshMailIf this is the first time running AshMail on your computerInstall the library withpip3 install ashmail. The PyPI page ishereContinued from last steps or already installed AshMailashmail <configuration>where<configuration>is the filename of the configuration yaml fileNote: make sure all the files described above are in the same directory before running the script.Important NotesAshMail currently only works with Gmail based accountsTurn on Less Secure Apps on your email before using the app, or if you have two factor authentication on, create an App Password and use that in the configuration file.Copyright © 2021 Aarush GuptaThis code is copyrighted but licensed to the public under the GNU AGPLv3 license and any later versions.
Package: ash-model
Attributed Stream Hypergraph (ASH)ASHis a Python software package that allows to represent and analyze dynamic hypergraphs enriched with node attributes.If you useASHas support to your research consider citing:A. Failla, S. Citraro, G. RossettiAttributed Stream Hypergraphs: temporal modeling of node-attributed high-order interactions.arXiv:2303.182262023Tutorial and Online EnvironmentsCheck out the officialtutorialto get started!If you would like to testASHfunctionalities without installing anything on your machine consider using the preconfigured Jupyter Hub instances offered bySoBigData++.InstallationASHrequirespython>=3.9.To install the latest version of our library just download (or clone) the current project, open a terminal and run the following commands:pipinstall-rrequirements.txt
pipinstall.Alternatively use pippipinstallash_modelor condacondaconfig--addchannelsgiuliorossetti
condaconfig--addchannelsconda-forge
condainstallash_modelCollaborate with us!ASHis an active project, any contribution is welcome!If you like to include your model in ASH feel free to fork the project, open an issue and contact us.
Package: ashrio
AshrioA frontend web-framework made in python, for python, with python in mind constantlyAshrio is the thing I've been looking for but could never find: a frontend-web framework in python that is easy to useand even easier to extend*. Right now it is JUST starting out, there are a grand total of 4 components, 5 if you count the grid system. It is simple and probably not useable at the moment, but hopefully it will be.The Idea + How to customizeI wanted something I could EXTEND easily. To extend this, you only really need your class to be a subclass of pydantic BaseModel, to have a filepath parameter, and to define a get_html method and a recommended write_to_file method (which is basically 3 lines of code once youve defined the get_html method haha).The get_html method should do the following:take the "props" (pydantic items) and integrate them into the styles/content/whatever they dooutput html with styles, js, or whatever you want
i. the only rule about the html is that it needs a style_extra parameter with a default set to "" that plugs into (usually) the top level div/whatever. This is how the grid system works, so it is a mustthere is a write_to_file method defined in utils that handles the complex stuff, so really you just need to get the code from get_html and then use the write_to_file method.If you have any questions, PLEASE ask.Plans/FutureMove to react (not sure if this is even worth it, might make it harder to use..Add more styling optionsadd a ton more componentsadd an event handling systemmigrate to tailwinduse Alpine for reactivity and better functionality (WIP)
Package: ashu-topsis
TOPSIS Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the altenrative of shortest Euclidean distance from the idael solution, and fartherst distance from the negative-ideal solution. More details at wikipedia. The TOPSIS algorithm is succintly explained in this paper comparing TOPSIS and VIKOR methods.Just install my package using pip install ashu_topsis , import it and use the class topsis's evaluate function to get the result.The code is included inside too as topsis.py
Package: ash-validity
Flask ValidityThe robust validation library for flaskInstallationspip3installlablnet/validityUsagefromflaskimportFlaskfromvalidity.ValidationimportValidationapp=Flask(__name__)validation=Validation()@app.route('/')@validation.validate([{"field":"title","required":True,"type":"str","min":10,"max":30,"regex":None}])defindex():return'Web App with Python Flask!'app.run(host='0.0.0.0',port=81)This class used to validate any incoming json request to your flask route, it validate the request after validation passes then the request enters your route function.It amins to allow you to write once and used a lot instead of validation request on every route it is better to do it once at top of your function.It support number of parameter are as follow:fieldThis is required parameter which indicate the field name you want to accpet.requiredThis is not required parameter but if this not present any of below validation will not considered, its value eitherTrueorFalsetypeWhich type of request value should be it supportint,float,list,bool,dictandstrminandmaxThese are optional parameter but if one of them present other is required its used to indicate restriction to min and max length or value.regexIt is optional parameter but It is used to validate request base on regex.emailIt is optional parameter it validate email.phoneIt is optional parameter it validate phone.fileIf validat file set this to true.sizeFile size in bytes.extFile extension it accpet python list.mimeFile mime types, it accpet python list.Returning ValueValidity support three method for returning the errorsAs jsonReturn as json array.As StringReturn as string.As query stringReturn redirect with query parameters.NoneNone mean it will do nothing but you can get the error withvalidator.ErrorsYou can pass these flags tovalidateas second argument.@app.route('/process',methods=['POST','GET'])@validator.validate([{"field":"name","required":True,"type":"str",}],None)defprocess():errors=validator.Errors# rest of code..LanguagesCurrently it support two languages out of the box that includes:EnglishUrduYou can set the language as below:# ...validator=Validator("en")# ...You can add your langauge by sendingPRand/or you can pass validator constructor language string as below, assume it will be your own language:# ...validator=Validator("en",{"required":"The%sis required.","extension":"The%sextension is not allowed.","mime":"The%smimetype is not allowed.","size":"The%ssize is too large.","empty":"The%smust not be empty.","type":"The%smust be%s.","between":"The%smust be between%sand%s.","regx":"The%smust be in correct format.","phone":"The phone number should be valid.","email":"The email should be valid.","error":"Unable to decode the data."})# ...ContributingThank you for considering contributing to the validity! Feel free to create a pull request.Contrubuting guidehttps://zestframework.github.io/contribution/LicenseGNU GPL3Security VulnerabilitiesIf you discover a security vulnerability within Validity, please send an e-mail to our team viasecurity@alphasofthub.com. All security vulnerabilities will be promptly addressed.
Package: ashx
ASHXFEniCSx toolsConvert gmsh meshes to dolfinxBase class for geometry definitionHelpers for integration and measureDocumentationSee the website with API reference and some examples atbenvial.gitlab.io/ashx.InstallationFrom PypiSimply runpipinstallashxFrom conda/mambamambainstall-cconda-forgeashxFrom sourceClone the repositorygitclonehttps://gitlab.com/benvial/ashx.gitInstall the package locallycdashx
pipinstall-e.From gitlabpipinstall-egit+https://gitlab.com/benvial/ashx.git#egg=ashx
Package: ashyq
ashyqis a simple and (a-)synchronous framework for Private Ashyq API written in Python 3.7 withrequestsandaiohttp. It helps you to get your status in Ashyq faster and simpler.Official ashyq resources:News and community: [@ashyqpy](https://t.me/ashyqpy)Russian community: [@ashyqpy](https://t.me/ashyqpy)PyPI: [ashyq](https://pypi.python.org/pypi/ashyq)Source: [Github repo](https://github.com/arynyklas/ashyq)Issues/Bug tracker: [Github issues tracker](https://github.com/arynyklas/ashyq/issues)
Package: asi4py
Atomic Similation Interface (ASI) APIAtomic Simulation Interface (ASI) is a native C-style API that includes functions for export and import of data structures that are used in electronic structure calculations and for classical molecular dynamics simulations. ASI aims to be a uniform, generic and efficient interface for connecting various computational chemistry and materials science codes in multiscale simulation workflows, such as QM/MM, QM/ML, QM/QM. ASI specifies functions, data types and calling conventions for export and import of density matrices, overlap and Hamiltonian matrices, electrostatic potential, atomic coordinates, charges, total energy and forces.ASI API specificationASI API is specified as a C header fileasi.h. Codes implementing ASI API must provide linkable library with definitions of functions fromasi.h. Depending on particular usage of the implementaions, some functions can be ommited or implemented as stubs, if they are not going to used. To use Python ASI wrapper it is necessary to have all functions fromasi.hdefined, but of course stub definitions can be used.ASI API specification.Supported in:DFTB+:in separate branch. Milestone release:22.2.FHI-aims: in the main branch.BuildingFHI-aimsFHI-aims has embedded support of ASI API. Just build latest version of FHI-aims as a shared library and use with your code.DFTB+Download and build DFTB+ fromthe branch with ASI APIwith shared library support.Set environment variablesDFTBP_INCLUDEandDFTBP_LIB_DIRto folders with DFTB+ C-headers and libraries.Optionally export environment variablesINSTALL_PREFIXandBUILD_PATHto set installation and building locations.Runmake && make installfrom the root of the working copy of this repository.The shared library implementing ASI API for DFTB+ will be in${INSTALL_PREFIX}/lib.TestingUseMakefileintestsfolder to build native tests. Set environment variables in the header oftests/Makefileto link with proper ASI API implementaions.To run tests go totests/testcasesand runrun_dftbp_tests.shorrun_aims_tests.shto run test.UsageSeetests/srcfor examples of usage in native code.Seetests/pythonfor examples of usage in Python scripts.
Package: asiacell
asiacellIt is a project that includes all social networking sites, and the most important features of the project is a private library whose work is to verify the availability of the user name if it is available or not available on more than one social siteInstallation :pip install asiacellThe method of workOpen a file in a text editor and name the file eg
asiacell.pyfromasiacellimportAsiaCellcap=AsiaCell().code()PID=AsiaCell().login('07703433331',cap)smsvalidation=AsiaCell().smsvalidation(PID,input('pass : '))ok=AsiaCell().profile(smsvalidation)print(ok)Follow us on social media
Package: asiacell.py
Unofficial Python Wrapper for Asiacell API âœ¨Simplify interaction with the Asiacell API using this unofficial Python wrapper. Perform actions like retrieving transferring money, Verify transferring, Spin wheel, Get the transaction and subscriptions history.InstallationInstall the package using pip:pipinstallasiacell.pyUsageHere's a simple example of usingasiacell.py:fromasiacellimportAsiacellfromasiacell.utils.modelsimportBundle# Defining The Number Object To Login Withasia=Asiacell("07700000000")# Login With The Numberpid=asia.login()# sending code to phone number and getting the pidcode=input(f"Enter the otp code: ")# getting the code from user# verify loginasia.verify_login(pid,code)# saving data for future use without login againasia.save_auth()asia.load_auth()print("AUTH LOADED")print(asia.get_account_data().balance.value)# prints account balanceres=asia.get_subscriptions_history()bundle:Bundleforbundleinres.bundles:print(f"{bundle.bundle_name},{bundle.amount}")For more details, refer to the upcoming documentation.ContributingContributions are welcome! Report bugs or suggest features by creating GitHub issues. Contribute code by forking the repository and submitting a pull request.ContactQuestions or discussions about the package can be held on ourDiscord community. Join us today!