Saravanan666/pypi-org huggingface dataset:
Package: pytheriak
pytheriakPython wrapper functions for Theriak-Domino.InstallationYou can install the package from pypi.org.
Run the following to install:pipinstallpytheriakUsageRun theriak from your python scriptImport the wrapper module.frompytheriakimportwrapperFirst, create a TherCaller-object.Theprograms_dirmust be set to the Programs directory of your Theriak-Domino installation. Specify the database (ensure that you correctly specify the file extension e.g., .txt or .bs). Specify your version of Theriak-Domino for completeness.To run Theriak from Python, the database file should be in the same directory as your python script. On Windows you must also have a theriak.ini in the directory.theriak=wrapper.TherCaller(programs_dir="..\Programs",database="a database file",theriak_version="v2023.01.02beta")As input for Theriak define:\Pressure in bars.pressure=4000Temperature in degree celsius.temperature=550Bulk composition following the Theriak-Domino format: Elements in uppercase followed by (number of moles).bulk="AL(2)SI(1)O(?)"Then call minimisation() on the TherCaller-object.rock,element_list=theriak.minimisation(pressure,temperature,bulk)This method returns a Rock-object containing all the properties of the minimised system and an element list. The list acts as an element - index lookup table for all compositional vectors of the Rock (bulk and phase compositions).Access the properties of the Rock-objectAn easy way to checkout all accessible properties is looking at the object's attributes using ...dir(rock)Useful rock properties are:rock.g_system# Gibbs free energy of the system [J]rock.bulk_composition_moles# Bulk composition [mol]rock.mineral_assemblage# List of stable solid phases...Mineral (and fluid) assemblage contain Mineral- and Fluid-Objects which hold the phase related properties.mineral=rock.mineral_assemblage[i]mineral.name# Phase name from databasemineral.n# Amount of phase [mol]mineral.composition_apfu# Mineral composition [apfu]...A quick, easy and pythonic way to retrieve properties is using list comprehensions.[mineral.nameformineralinrock.mineral_assemblage][mineral.composition_apfuformineralinrock.mineral_assemblage]Cite pytheriakThe pytheriak package is registered on Zenodo. If you use pytheriak in your research, please cite it using the following DOI:LicenseTheriak-Domino/pytheriak is licensed under the GNU General Public License v3.0. SeeLICENSEfor more details.
Package: pythermica
pythermicaPost processing for Thermica simulation resultsFree software: GNU General Public License v3Documentation:https://pythermica.readthedocs.io.FeaturesAllows the automatic and deep analyses of Systema-Thermica results:Analyse the nwk files to asses the Conductive and Radiative coupling coefficientsAnalyse the simulation results, like Temperature, internal dissipation, flexes, etc.Generate automaticaly the relevant figuresCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-03-09)First release on PyPI.0.2.0 (2022-01-21)Added network analyse
Package: py-therocktrading-api
The Rock Trading Python LibraryTheRockTrading Python Library to communicate with JSON REST API (current version -> v1)FeaturesOfficial implementationPlace ordersWallet managmentMarket dataInstallationpip:pipinstallpy-therocktrading-apiQuickstartRegister an account withThe Rock TradingorThe Rock Trading Staging.Go to settings page and get the API and APY SECRET keys.
If you want to use the staging setstaging=True.fromTheRockTradingimportClienttrt=Client(API='API',API_SECRET='API_SECRET',staging=False)trt.currencies()ExamplesGet orderbooktrt.orderbook('BTCEUR')Get all tickerstrt.tickers()Get balance for all cointrt.balances()Place an order#market ordertrt.place_order(fund_id='BTCEUR',side='buy',amount='1')#limit ordertrt.place_order(fund_id='BTCEUR',side='buy',amount='1',price='60000')#with a condition es: stop_loss or take_profittrt.place_order(fund_id='BTCEUR',side='buy',amount='1',price='60000'conditional_type='stop_loss',conditional_price='55000')Withdrawtrt.balances(currency='BTCEUR',destination_address='address'amount=1)You can find the full documentation for the endpointshere
Package: pyThesaurus
Python module to manage multilingual and multicontextual thesaurus. The thesaurus
organization is like SKOS-Core structure. Can store administration and semantical
information, and have all thesaurus kind of relations.FuncionalidadesImport and Export SKOS-Core, OWL, iDing, and Open-Thesaurus formats.Identify similar concepts.Optimized for related terms queries.Relations enabled are equivalentes, preferred, hiden, borrowed andnarrowed terms.Easy instalation.# easy_install pyThesaurus
Package: pythesint
py-thesaurus-interfaceAn interface to metadata vocabularies for geospatial and other geophysical dataInstallpip install https://github.com/nansencenter/py-thesaurus-interface/archive/master.tar.gzUsageimport pythesint as pti
pti.get_gcmd_instrument('MERIS')
pti.get_gcmd_platform('ENVISAT')
pti.get_gcmd_provider('NERSC')For JSON vocabularies, it is possible to update the local files using a specific version.
The format of the version depends on the provider.
If no version is provided, the latest version is retrieved.importpythesintasptipti.update_gcmd_instrument(version='9.1.5')pti.update_cf_standard_name(version='20210119T185509')pti.update_mmd_platform_type(version='a5c8573')orimportpythesintasptipti.update_all_vocabularies(versions={'gcmd_instrument':'9.1.5','cf_standard_name':'20210119T185509','mmd_platform_type':'a5c8573'})StandardsThe package follows the standards defined at NASA's Global Change Master Directory (GCMD) (http://gcmd.gsfc.nasa.gov) and the NetCDF-CF conventions (http://cfconventions.org/), plus possibly others that will be added as needs emerge... The standards are mapped in Python dictionaries and saved to json-files.Directory Interchange Format (DIF)The DIF format is a descriptive and standardized format for exchanging information about scientific data sets. The py-thesaurus-interface package provides an interface to the keywords and formats defined at GCMD.See: Directory Interchange Format (DIF) Writer's Guide, 2015. Global Change Master Directory. National Aeronautics and Space Administration. [http://gcmd.nasa.gov/add/difguide/].Controlled keyword vocabularies from GCMDSee: Global Change Master Directory (GCMD). 2015. GCMD Keywords, Version 8.1. Greenbelt, MD: Global Change Data Center, Science and Exploration Directorate, Goddard Space Flight Center (GSFC) National Aeronautics and Space Administration (NASA). URL:http://gcmd.nasa.gov/learn/keywords.html
Package: pythf
Python bindings for Group-IB THF REST APILatest Version: 1.0.6DescriptionThe Group-IB THF Python Client enables you to fully integrate Group-IB THF Polygon into your malware analysis framework.
Group-IB THF Polygon is a Malware Detonation & Research platform designed for deep dynamic analysis and enhanced indicators extraction.You can use this library withGroup-IB THF Cloud— our Cloud hosted instanceOn-premise installations of Group-IB THF— for even more power and privacyLicenseThe code is written in Python and licensed under MIT.Requirementspython 3.6 or higherGetting StartedInstallationpip install pythfFor upgradingpythfto a more recent version, usepip install --upgrade pythfAPI KeyIn order to perform any queries via the API, you will need to get the API token for your Group-IB THF user.Open Group-IB THF Huntbox web interface.Navigate to "Profile" and click "Generate Auth Token".Copy this token. This is your API Key.Sample CodeLet's start by sending some file ("sample.exe") for analysis:from pythf import Polygon

polygon = Polygon("MY_API_KEY")
analysis = polygon.upload_file(open("sample.exe", "rb"))If you want to detonate some URL, use the next method:analysis = polygon.upload_url("https://very-malicious-url.com")Now we have theanalysisobject.
To update analysis status and get info about it, use the next method:info = analysis.get_info(extended=True)Notice: parameterextendedallows you to get full or short info about analysis process. The short version of the information is as follows:{
    "status": "IN PROGRESS" | "FINISHED" | "FAILED",
    "verdict": None | True | False,
    "report_url": "https://...",
    "error": "Some error"  # optional field only for "FAILED" status
}If the "verdict" isTruethen object is malicious.Notice: THF need some time to generate the report url. Until it happens, the response will not contain this field.You can get full report as a dictionary:report = analysis.get_report()There is a way to download some detonation artifacts and the report:archived_report = analysis.export_report()  # Export report as .tar.
pdf_report = analysis.export_pdf_report()   # Export report as PDF
pcap = analysis.export_pcap()               # Export all network activity as .pcap file.
screen_video = analysis.export_video()      # Export the screen-video of the detonation process.Notice: If there is no artifact, all this methods raiseObjectNotFoundError.You can check some hash reputation with this method:reputation = polygon.get_hash_reputation("md5", "ac55cf33c4691f863bfb3af8c06a7244")You can get reputation formd5,sha1,sha256hash types.
The method returns a dict object:{
    "found": true | false,
    "verdict": true | false,
    "malware_families": [],
    "score": float in [0; 100]
}
Package: pythia8mc
PYTHIAPYTHIA is a program for the generation of high-energy physics collision events, i.e. for the description of collisions at high energies between electrons, protons, photons and heavy nuclei. It contains theory and models for a number of physics aspects, including hard and soft interactions, parton distributions, initial- and final-state parton showers, multiparton interactions, fragmentation and decay. It is largely based on original research, but also borrows many formulae and other knowledge from the literature. As such it is categorized as a general purpose Monte Carlo event generator.InstallationThe PYTHIA package is natively written in C++, which is the preferred interface. To work with PYTHIA via C++ go to thePYTHIA homepageand follow the instructions outlined there. The Python interface to PYTHIA can be installed directly viapip.Note that for this PyPI distribution of PYTHIA, the module name has been changed frompythia8topythia8mcas thepythia8project name was unavailable.Outside of the PyPI distribution, thepythia8module name is always used.pipinstallpythia8mcThe interface is also available viaconda.condainstall-cconda-forgepythia8It is possible, and in many ways preferable, to build the Python interface directly from the PYTHIA C++ distribution (as well as update the Python bindings) using the configuration script.wgethttps://pythia.org/download/pythia83/pythia8XXX.tgz
tarxvfzpythia8XXX.tgzcdpythia8XXX
./configure--with-python
makeUsageFor a full description of usage, as well as examples, see the accompanyingHTML manualfor this version of PYTHIA.The following imports thepythia8mcmodule and creates aPythiainstance.importpythia8mcpythia=pythia8mc.Pythia()PYTHIA must then be configured and initialized, in this example to produce minimum bias events at the LHC.pythia.readString("SoftQCD:all = on"pythia.init()Finally, we can produce an event, and explore the event record.pythia.next()forprtinpythia.event:print(prt.name())PathsPYTHIA requires the XML files which are used to build theHTML manualto define settings. Additionally, settings files for tunes are also distributed with PYTHIA. For the PyPI distribution, these files can be found along the relative path,../../../share/Pythia8/xmldocwith respect to thepythia8mcmodule library. By default, this path should be correctly set, but it can be printed as follows.print(pythia8mc.__file__.rstrip("pythia8mc.so")+"../../../share/Pythia8/xmldoc")The settings directory can be found in../settings/with respect to this folder. However, it is possible to overwrite the XML path by setting the environment variablePYTHIA8DATA,exportPYTHIA8DATA=<PYTHIAXMLpath>or by passing the XML path to thePythiaconstructor.pythia8mc.Pythia("<PYTHIA XML path>")
Package: pythia-client
pythia-clientThis is the client make it easier to interact with our internal Pythia API.This is still a work in progressUsageCreate a connection with client objectfrompythia_client.clientimportAPIClientclient=APIClient(url="http://localhost:8000",api_key="api-key")Query the knowledge base (ask a question)filters={"operator":"AND","conditions":[{"field":"meta.source","operator":"==","value":"Salesforce",},],}query_response=client.query("Hey how are you",filters=filters)query_response.model_dump()Index new files in the knowledge baseindex_response=client.index_files(["path/to/file.pdf"],meta=[{"source":"Salesforce"}],indexation_mode="unstructured")index_response.model_dump()# ORindex_response=client.index_files([("file.pdf",file)],meta=[{"source":"Salesforce"}],indexation_mode="unstructured")index_response.model_dump()List documents in the knowledge base (based on filters)filters={"operator":"AND","conditions":[{"field":"meta.source","operator":"==","value":"Salesforce",},],}list_response=client.list_docs(filters=filters)list_response.model_dump()Remove documents from the knowledge basefilters={"operator":"AND","conditions":[{"field":"meta.source","operator":"==","value":"Salesforce",},],}remove_response=client.remove_docs(filters=filters)remove_response.model_dump()Get a presigned S3 url to the original documentget_doc_response=client.get_doc_url("s3fd_sample.pdf",page=2)s3_url=get_doc_response.urlExtract JSON data from unstructured test.Currently used to showcase the Email2Case feature.extract_response=client.extract_json_data("Hello I want to modify the delivery date of order FR73681920")extract_response.model_dump()
Package: pythia-datasets
CIDocsPackageLicensepythia-datasetsData repository for Project Pythia examples/notebooksSample data setsThese files are used as sample data in Pythia Project examples/notebooks and are downloaded bypythia_datasetspackage:NARR_19930313_0000.ncenso_data.csvjan-17-co-asos.txt.xzCESM2_sst_data.ncCESM2_grid_variables.ncAdding new datasetsTo add a new dataset file, please follow these steps:Add the dataset file to thedata/directoryFrom the command line, runpython make_registry.pyscript to update the registry file residing inpythia_datasets/registry.txtCommit and push your changes to GitHubUsing datasets in notebooks and/or scriptsEnsure thepythia_datasetspackage is installed in your environmentpython-mpipinstallpythia-datasets# orpython-mpipinstallgit+https://github.com/ProjectPythia/pythia-datasetsImportDATASETSand inspect the registry to find out which datasets are availableIn[1]:frompythia_datasetsimportDATASETSIn[2]:DATASETS.registry_filesOut[2]:['jan-17-co-asos.txt.xz','NARR_19930313_0000.nc']To fetch a data file of interest, use the.fetchmethod and provide the filename of the data file. This willdownload and cache the file if it doesn't exist already.retrieve and return the local pathIn[4]:filepath=DATASETS.fetch('jan-17-co-asos.txt.xz')In[5]:filepathOut[5]:'/Users/abanihi/Library/Caches/pythia-datasets/jan-17-co-asos.txt.xz'Once you have access to the local filepath, you can then use it to load your dataset into pandas or xarray or your package of choice:In[6]:df=pd.read_csv(filepath)
Package: pythia-learn
Pythia is a library to generate numerical descriptions of particle
systems. Most methods rely heavily onfreudfor efficient neighbor search
and other accelerated calculations.InstallationPythia is available on PyPI aspythia-learn:$ pip install pythia-learn freud-analysisYou can install pythia from source like this:$ git clone https://github.com/glotzerlab/pythia.git
$ # now install
$ cd pythia && python setup.py install --userNoteIf using conda or a virtualenv, the–userargument in the pip
command above is unnecessary.CitationIn addition to the citations referenced in the docstring of each
function, we encourage users to cite the pythia project itself.DocumentationThe documentation is available as standard sphinx documentation:$ cd doc
$ make htmlAutomatically-built documentation is available athttps://pythia-learn.readthedocs.io.UsageIn general, data types follow thehoomd-blue schema:Positions are an Nx3 array of particle coordinates, with(0, 0, 0)being the center of the boxBoxes are specified as an object withLx,Ly,Lz,xy,xz, andyzelementsOrientations are specified as orientation quaternions: an Nx4 array of(r, i, j, k)elementsExamplesExample notebooks are available in theexamplesdirectory:Unsupervised learningSupervised learningSteinhardt and Pythia order parameter comparison (FCC and HCP)
Package: pythics
What is pythics?Pythics is a simple 2D physics simulator developed alongside instruction in AP Physics 1. While mostly being an application of the concepts learned in class to further my understanding, it will be implemented to coexist with another project using pygame for game development.UnitsMass → $grams$Positions → $meters$Velocity → $\frac{meters}{second}$Acceleration → $\frac{meters}{second^2}$Forces → $Newtons$
Package: pythings
pythingsA zero-depedencies and most-used python resources.Available resourcesConvertionsMore convertions can be added.FeaturesOperationsWeb scrappingConvertionsUsageUse PyPi to installpythingsin your computer.Open new terminal in your code enviroment and type below:pip install pythingsWriting our first program withpythingsfrompythings.convertionsimportConvertions# Lets create an objectc=Convertions()# Calling this convertion methodc.text_to_binary("foo")# Output:# 01100110 01101111 01101111LicenseMIT License -Read full LICENSE
Package: pythink
pythink灵感来自于ThinkPHP 部分代码实现参考了 records根据现有业务 实现了简单的增删改查， 可以用作日常助手依赖：SQLAlchemy>=1.2.8

ps：原来基于peewee实现的，不过问题较多，就直接用SQLAlchemy安装pip install pythink快速开始新建表CREATETABLE`student`(`id`int(11)NOTNULLAUTO_INCREMENT,`name`varchar(20)DEFAULT'',`age`int(11),`create_time`datetimeDEFAULTNULL,PRIMARYKEY(`id`))ENGINE=InnoDBDEFAULTCHARSET=utf8代码示例1、连接数据库，创建Model# -*- coding: utf-8 -*-frompythinkimportThinkModel,ThinkDatabasedb_url="mysql://root:123456@127.0.01:3306/demo"db=ThinkDatabase(db_url)classStudentThinkModel(ThinkModel):table_name="student"database=db2、插入操作# 1、增加单条记录data={"name":"Tom"}>>>StudentThinkModel.insert(data)>>>1# 2、增加多条记录data=[{"name":"Tom",},{"name":"Jack"}]>>>StudentThinkModel.insert(data)>>>2# 3、插入多条 分段插入data=[{"name":"Tom","age":24,},{"name":"Tom","age":25,},{"name":"Tom","age":26,},{"name":"Tom","age":27,},{"name":"Tom","age":28,},{"name":"Tom","age":29,}]# 每次插入3 条数据>>>StudentThinkModel.insert(data,truncate=3)>>>63、查询操作# 1、查询数量>>>StudentThinkModel.count()>>>24# 2、查询记录rows=StudentThinkModel.select(["name","age"],where="id>25",limit=5)forrowinrows:print(row.name,row.age)# ('Tom', 25L)# ('Tom', 26L)# ('Tom', 27L)# ('Tom', 28L)# ('Tom', 29L)4、更新操作# 条件更新data={"name":"tom","age":30}>>>StudentThinkModel.update(data,"id=25")>>>15、删除操作# 删除>>>StudentThinkModel.delete("id=13")>>>1当然，也可以不写表名，就像（省略部分代码）classBaseThinkModel(ThinkModel):database=dbclassStudentThinkModel(BaseThinkModel):"""
    学生类
    会被自动转为 小写命名方式：student
    """更多关于使用示例： ThinkDatabasehttps://github.com/mouday/PyThink/blob/master/test_database.pyThinkModelhttps://github.com/mouday/PyThink/blob/master/test_modle_extend.py更新记录部分版本可能存在不兼容，属于正常现象，后续版本会趋于稳定时间版本主要更新2019-04-14v0.0.1基于peewee 实现基本的CURD2019-04-20v0.0.2增强Model的功能,配置自动完成字段2019-04-26v0.0.3添加多行插入功能2019-04-27v0.0.4将update、delete修改得更通用2019-04-30v0.0.5基于SQLAlchemy重写逻辑，完成多行分次插入2019-04-30v0.0.6修复安装报错的问题2019-05-10v0.0.7添加自动转为类名为表名2019-05-15v0.0.8给Model添加一些快捷方式
Package: pythle
PythleA terminal-based version of the popular word-guessing game Wordle, built with Python.Created as my first GitHub project!Table of ContentsGetting StartedPrerequisitesInstallationPlayContributingAcknowledgementsLicenceGetting StartedPrerequisitesA terminal with support forANSI coloursis required.Before you go any further,ensure you have Python and that the expected version is available from your command line.If you do not have Python, please install the latest 3.x version frompython.orgor refer to theInstalling Pythonsection of the Hitchhiker’s Guide to Python.InstallationTo learn how to install a Python file (package), refer to theInstallation Tutorialfrom PyPI.Install using pip:pip install pythlePlayTo start the game, run from the command line:pythleType your guess and hit the enter button to submit.ContributingThank you for your interest in contributing to this project!Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.There are many ways in which you can participate in this project, including some that don't require you to write a single line of code:Report a bugRequest a feature/enhancementWrite documentation, for users and contributorsContribute to the codebaseIf you're looking for a way to contribute, you can scan through the existing issues for something to work on.Please take a moment to read theContribution Guidelines, to help make the process easy and effective for everyone involved.AcknowledgementsWordlebyJosh WardleAl Sweigartfor his excellent series of books on learning Python, available for free!ArjanCodesand hisCode Roast YouTube videosfor inspiring me to try to write better code.Programming with Alexfor hispytester-covGitHub Action used to check code coverage in this project.LicenceLicensed under theGNU General Public License v3.0.
Package: pythocrypt
PythoCryptThis package is intended to contain some of the most famous encryption tools, that
includes:Caesar shiftRail fenceInstallationRun into your terminal to install:pip install pythocryptDocumentationFor more information, read the latest documentation is at:https://hugoespinelli.github.io/pythocrypt/You can also check pypi:https://pypi.org/project/pythocrypt/ExamplesUsing Caesar's cipherTo encrypt a message using Caesar shift:from pythoncrypt import caesar

message = "Hello World"
message_encrypted = caesar.encrypt(message)For decryption is very similar from example above:from pythoncrypt import caesar

message_encrypted = ""
message = caesar.decrypt(message_encripted)The default shift is3, but you can also change the shift distance,
passing as parameter when calling decrypt method:from pythoncrypt import caesar

message_encrypted = ""
message = caesar.decrypt(message_encripted, shift=10)LicensePythoCrypt is under theMIT License