Saravanan666/pypi-org huggingface dataset:
Package: crystaldb
CrystalDBCrystalDB is a simple and small ORM. It has few concepts, making it easy to learn and intuitive to use.a small, expressive ORM, and no need to provide a model, so it will not be difficult for the problem of sub-library or sub-tables.python3.need mysql-client or pymysql or mysql.connector.currently only supports mysql.InstallationFrom PyPi:$ pip install crysyaldbBasic UsageConnect to the database:importcrystaldbdb_host='127.0.0.1'db_port=3306db_user='root'db_pass='123'db_database='testdb'db_handle=crystaldb.database(dbn='mysql',host=db_host,port=db_port,user=db_user,passwd=db_pass,db=db_database,debug=True)Create table:(Temporarily not supported, need to be completed by yourself)for example:CREATETABLE`user`(`id`int(11)unsignedNOTNULLAUTO_INCREMENT,`gender`varchar(16)DEFAULTNULL,`name`varchar(16)DEFAULTNULL,`birthday`varchar(16)DEFAULTNULL,`age`int(11)unsignedDEFAULTNULL,PRIMARYKEY(`id`))ENGINE=InnoDBDEFAULTCHARSET=utf8;Create row:values={'gender':'girl','name':'xiaoli_orm','birthday':'1982-08-02','age':36}result=db_handle.operator("user").insert(**values)print(result)# ==> 1# If debug is True, the following log will be printed, time unit ms.# 0.3162 (1): INSERT INTO user (age, birthday, gender, name) VALUES (36, '1982-08-02', 'girl', 'xiaoli_orm')Querying:result=db_handle.select("user",["name","age"]).filter(age=36,gender="girl").query()print(result.__len__())# countprint(result)# <crystaldb.utils.IterBetter object at 0x1115246a0>foriteminresult:print(item)# <Storage {'name': 'xiaowang', 'age': 36}>print(item.name)# xiaowang# If debug is True, the following log will be printed, time unit ms.# 0.8579 (5): SELECT user.name, user.age FROM user WHERE user.age = 36 AND user.gender = 'girl'Update row:where=dict(name="xiaoli_orm")values={'gender':'boy','birthday':'1981-08-02','age':37}result=db_handle.operator("user").update(where,**values)print(result)# 1# If debug is True, the following log will be printed, time unit ms.# 0.4399 (1): UPDATE user SET age = 37, birthday = '1981-08-02', gender = 'boy' WHERE name = 'xiaoli_orm';Delete row:where=dict(name="xiaoyu",age=27)result=db_handle.operator("user").delete(where)# If debug is True, the following log will be printed, time unit ms.# 0.3782 (1): DELETE FROM user WHERE age = 27 AND name = 'xiaoyu';Get Debug Queries:print(db_handle.get_debug_queries_info)# {'run_time': '0.8247', 'sql': "SELECT user.name, user.age FROM user WHERE user.age = 36 AND user.gender = 'girl'"}DocumentationInsertUpdateQueryingDeleteLearning moreCheck the documentation for more examples or read test cases in unit test code.Change LogChange LogDiscussingsubmit issueemail:fuzctc@gmail.com
Package: crystalipf
crystalipfThis is an easy-to-use library to create inverse
pole-figures (ipf) for crystal lattices with
cubic symmetry.InstallationThe library can be installed in three different ways:Install it from the Python Package Index.pipinstallcrystalipfClone the repository and install it.gitclonehttps://github.com/silvioachilles/crystalipf.gitcdcrystalipf
pipinstall.Copycrystalipf/cubic.pyto your project and include it in your code.UsageAn orientation must be expressed as an orientation matrix.
In the code snippet below it is shown how to retrieve
the rgb color of the orientation and its position in the ipf.importnumpyasnpimportmatplotlib.pyplotaspltfromcrystalipf.cubicimportposition,rgb,image,image_plt,edges# example orientation matrix of a graingrain=np.array([[0.71825437,-0.68019413,0.14644661],[0.68019413,0.6421339,-0.35355339],[0.14644661,0.35355339,0.92387953]])# sample directiong=np.array([0,0,1])# ipf positiongrain_ipf_x,grain_ipf_y=position(grain,g)# ipf colorgrain_ipf_rgb=rgb(grain,g)# to illustrate, the grain's orientation is plotted# in the ipf with respective coloringfig,ax=plt.subplots()ax.scatter([grain_ipf_x],[grain_ipf_y],c=[grain_ipf_rgb])# the edges of the ipfipf_edges_xs,ipf_edges_ys=edges()ax.plot(ipf_edges_xs,ipf_edges_ys)ax.axis('off')plt.show()Using theimage_pltfunction, you can create a matplotlib plot of a fully
colored ipf with annotations for the corners.fig,ax=plt.subplots()image_plt(ax)plt.show()An raw image of a fully colored ipf can be retrieved with theimagefunction,
allowing to create a customized ipf plot.fig,ax=plt.subplots()ipf_image,xmax,ymax=image()ax.imshow(ipf_image,extent=0,xmax,0,ymax)ax.plot(ipf_edges_xs,ipf_edges_ys,c='black')plt.show()TroubleshootingPlease open a github issue if anything appears not correct.
Package: crystal-kernel
crystal_kernelSimplePython wrapper kernelfor Crystal language.ICrystalis the widely used Jupyter kernel for Crystal,
which usesICR.
On the other hand, this crystal_kernel uses the officialCrystal interpreter.Forked frombash_kernelinstallationMake sure theCrystal's interpreterstarts withcrystal i.Then type the following commands.pip install crystal_kernel

python -m crystal_kernel.installDevelopmentSomething is better than nothing.
Package: crystallize
O que é o CrystallizeO Crystallize é um projeto que Visa a atende de maneira imediata a necessidade de se armazenar dados, tanto para profissionais de Data Science, como também para profissionais do desenvolvimento de softwares em geral que precisam de uma rápida abordagem para o salvamento de seus dados.Nossa filosofiaEste projeto nasceu com o intuito de ser leve e eficaz sem a necessidade de instalação de bibliotecas adicionais. Todo o projeto é de rápida instalação e download sendo realmente uma alternativa muito prática para a essas questões de salvamento de dados no dia a dia dos desenvolvedores de softwares.____________________________What is CrystallizeCrystallize is an immediate project aimed at the need to also meet data, both for Science professionals and for software development professionals in general who need a quick way to save their data.Our philosophyThis project was born with the intention of being light and efficient without the need to install additional libraries. The entire project is quick to install and download and is really a very practical alternative to these data saving issues in the day to day of software developers.
Package: crystalmapping
Obtain the distribution of grains inside a crystal from a series of diffraction images using automated peak
tracking.Free software: 3-clause BSD licenseDocumentation:https://st3107.github.io/crystalmapping.InstallRun the bash script in abashshell.bash install.shIt will start an interactive session for the installation.UpdateRun the following commands to update.bash update.sh <the name of the conda environment>ExamplesThe example of usage will be released to the public after the publication of the paper.
Package: crystalmaths
Package for indexing the zone axis of a high res TEM imageCrystalmathsis a Data Science Project that was developed as a part of the DIRECT Program by a group of graduate students from the University of Washington in Seattle.The goal ofcrystalmathsis to create a Python module that can make automate zone axis definition from a high resolution TEM images.crystalmathsis a developing module with more improvements to come. Feel free to add your comments, notes, and recommendations in theissuesof this repository.Installation:conda install crystalmathsSoftware Dependencies:Python 3.7Please see the fileenvironment.ymlfor the needed packages.Preview of CrystalMaths:Please review this short demo of how to usecrystalmathsfunctions:Video availablehere.Please see theModule Demo jupyter notebookin the examples folder for more details.Acknowledgments:Thanks to Ting, Dave, Ted, Jimin, Torin, and Caitlyn for being fantastic instructors and mentors for us.
Package: crystalpol
CrystalPolArquivo de Configuração -config.ymlNo arquivo de Configuração temos as sequintes keywords:crystal_pol:mem:*obrigatorio*level:*obrigatorio*n_atoms:*obrigatorio*n_procs:1pop:"chelpg"mult:[0,1]charge_tolerance:0.02simulation_dir:"simfiles"comment:"Crystal"Estas keywords são utilizadas para controlar o comportamento do programa CrystalPol e de sua dependência Gaussian.Arquivo de input -crystal.xyzO arquivo de input deve ter o formatoH   1.0000  1.0000  1.0000Sendo que as primeirasN(valor derivado da keywordn_atoms) átomos devem ser da molécula da celula unitária a ser otimizada.Este arquivo pode ser obtido também retirando o header de um arquivo .gjf e o renomeando para .xyzInstalando dependênciapython3-mpipinstallsetproctitlepyyamlnptypingnumpyComo executarpython3-mcrystalpol-c{arquivo_de_config}.yml-i{arquivo_de_input}.xyz-o{arquivo_de_saida}.logCaso as opções-c,-ie-onão seja dadas os seguintes valores padrões serão usados:arquivo_de_config:config.ymlarquivo_de_input:crystal.xyzarquivo_de_saida:run.logOrientação para CitaçõesPor favor citar este software utilizando o seguinte biblatex:@software{crystalpol,
  author = {{Georg, Herbert} and {Batista, Vitor}},
  title = {CrystalPol - Crystal Polarization Software},
  url = {https://github.com/HideyoshiNakazone/CrystalPol},
  version = {0.1},
}
Package: crystal-small
This library bundlesEveraldo’s Crystal iconsfor direct consumption with applications.
This is based onambv/django-crystal-smallwith Django dependencies removed. Sizes available are 16x16, 22x22, 24x24, 32x32 and 48x48.
Look fordjango-crystal-bigfor
64x64 and 128x128. The icons are additionally crushed using pngcrush, optipng
and advpng.Very simple installation:The latest version can be installed viaPyPI:$ pip install crystal-smallThesource code repositoryandissue trackerare maintained onGitHub.Note:This is only a handy bundle of icons originally
crafted byEveraldo Coelhoand contributors.
These icons have been released under the LGPL, and so is this bundle.
Package: crystaltoolkit-extension
crystaltoolkit-extensionA JupyterLab extension for rendering Crystal Toolkit Scene JSON files.RequirementsJupyterLab >= 3.0Installpipinstallcrystaltoolkit-extensionContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the crystaltoolkit-extension directory# Install package in development modepipinstall-e.# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmrunbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmrunwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm run buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseUninstallpipuninstallcrystaltoolkit-extension
Package: crystal-torture
crystal_torture:crystal_tortureis a Python, Fortran and OpenMP crystal structure
analysis module. The module contains a set of classes that enable:a crystal structure to be converted into a graph for network analysisconnected clusters of crystal sites (nodes) to be retrieved and
outputperiodicity of connected clusters of crystal sites to be determinedrelative path tortuosity to traverse a crystal within a connected
cluster to be calculated for each siteInstallationcrystal_torturerequires python 3.6 and above. To install do:pip install crystal_tortureor download directly fromGitHub, or
clone:git clone https://github.com/connorourke/crystal_tortureand installcd crystal_torture
python setup.py installTestscrystal_tortureis automatically tested on each commithere, but the
tests can be manually run:python -m unittest discoverExamplesExamples on how to usecrystal_torturecan be found in a Jupyter
notebook in theexamplesdirectorycrystal_torture_examples.ipynbDocumentationDocumentation can be foundhere
Package: crystal-tree
crystal-treeThe goal of crystal-tree package is to provide simple, crystal-clear, natural language explanations for the predictions from classification Decision Trees.This simple python package provides an object for obtaining explanations from a (for nowscikit-learn's) Decision Tree Classifier.The implementations consists in the translation of the Decision Tree into an explainable logic program forxclingo.Given an input, the CrystalTree object will provide the prediction from the original tree, justified by a summarized version of the conditions checked by the tree to ultimately produce the prediction. The explanations are provided as python objects which can be easily represented as text. The text used for the explanations admit some personalization, which allows the user to adapt them particular contexts (different languages, different levels of expertise, etc.)Installationpython -m pip install crystal-treeUsageThe following program will train a Decision Tree into the task of predicting types of flowers (throught the well-known Iris dataset), and then it will some explanations as an example.
The program requires the following modules to be installed:python -m pip instll sklearn pandasfromsklearn.datasetsimportload_irisfromsklearn.treeimportDecisionTreeClassifierfromcrystal_treeimportCrystalTree# Loads datasetX,y=load_iris(return_X_y=True,as_frame=True)# Trains decision treeclf=DecisionTreeClassifier()clf.fit(X,y)# Translates the classifier into an explainable logic programcrys_tree=CrystalTree(clf)# Print explanations of input X (two arbitrary rows)foreincrys_tree.explain(X.iloc[[0,54]]):print(e.ascii_tree())This will produce the following output.*
  |__Predicted class 0 for instance 0
  |  |__petal width (cm) <= 0.8

  *
  |__Predicted class 1 for instance 1
  |  |__petal length (cm) <= 4.9
  |  |__petal width (cm) in (0.8,1.6]More examples concerning personalization of explanations can be found in theexamples/directory in this repository.
Package: crytapi
CRYT Python APIInstall dependenciespython -m venv env
source env/bin/activate
pip install -r requirements.txtTestpoetry run pytest -vBuildpoetry buildSetup environmentexport POETRY_PYPI_TOKEN_PYPI="token"
export POETRY_HTTP_BASIC_PYPI_USERNAME="username"
export POETRY_HTTP_BASIC_PYPI_PASSWORD="password"Update version[tool.poetry]
version = "0.0.9"Publishpoetry publish
Package: crython
crython is a lightweight task (function) scheduler usingcronexpressions written in
python.StatusThis module is actively maintained.InstallationTo install crython frompip:$pipinstallcrythonTo install crython from source:$gitclonegit@github.com:ahawker/crython.git$pythonsetup.pyinstallUsageCrython supports seven fields (seconds, minutes, hours, day of month,
month, weekday, year).Call a function once a minute:importcrython# Fire once a minute.@crython.job(second=0)deffoo():print"... while heavy sack beatings are up a shocking nine hundred percent? - Kent Brockman"Call a function every ten seconds:# Fire every 10 seconds.@crython.job(second=range(0,60,10))deffoo():print"I'm a big four-eyed lame-o and I wear the same stupid sweater every day. - Homer's Brain"Call a function with a single cron expression:# Fire every 10 seconds.@crython.job(second='*/10')deffoo():print"Hail to the thee Kamp Krusty... - Kampers"Call a function with a full cron expression:# Fire once a week.@crython.job(expr='0 0 0 * * 0 *')deffoo():print"Back in line, maggot! - Kearny"Call a function with positional and/or keyword arguments:# Fire every second.@job('safety gloves',second='*',name='Homer Simpson')deffoo(item,name):print"Well, I don't need{0}, because I'm{1}. -- Grimey".format(item,name)Call a function usingpredefined
keywords:# Fire once a day.@crython.job(expr='@daily')deffoo():print"That's where I saw the leprechaun. He tells me to burn things! - Ralph Wiggum"# Fire once immediately after scheduler starts.@crython.job(expr='@reboot')deffoo():print"I call the big one bitey. - Homer Simpson"Call a function and run it within a separate thread (default behaviour
ifctxis not specified):# Fire once a week.@crython.job(expr='@weekly',ctx='thread')deffoo():print"No, no, dig up stupid. - Chief Wiggum"Call a function and run it within a separate process:# Fire every hour.@crython.job(expr='@hourly',ctx='multiprocess')deffoo():print"Eat my shorts. - Bart Simpson"Start the global job scheduler:if__name__=='__main__':crython.start()KeywordsEntryDescriptionEquivalent To@yearly/@annuallyRun once a year at
midnight in the
morning of January 10 0 0 0 1 1 *@monthlyRun once a month at
midnight in the
morning of the first
of the month0 0 0 0 1 * *@weeklyRun once a week at
midnight in the
morning of Sunday0 0 0 0 * 0 *@dailyRun once a day at
midnight0 0 0 * * * *@hourlyRun once an hour at
the beginning of the
hour0 0 * * * * *@minutelyRun once a minute at
the beginning of the
minute0 * * * * * *@rebootRun once at startup@rebootTODOSupport “L”, “W” and “#” specials.Determine time delta from now -> next time expression is valid.ContributingIf you would like to contribute, simply fork the repository, push your
changes and send a pull request.LicenseCrython is available under theMIT
license.See OtherThere are similar python cron libraries out there. See:pycron,python-crontab,cronex.
Package: crytic-compile
Crytic-compileLibrary to help smart contract compilation. It includes support for:Direct solc compilationFoundryHardhatBrownieBuidlerDappEmbarkEtherlimeEtherscan(including several alt-chain explorers and testnets)TruffleWaffleTo force compilation with a specific framework, use the--compile-force-frameworkflag. For example, to force compilation with Hardhat:crytic-compile.--compile-force-frameworkhardhatSee theConfigurationdocumentation for advanced usages.The plugin is used in Trail of Bits tools, including:SlitherEchidnaManticoreevm-cfg-builderInstallationpip3installcrytic-compileUsageIn the root directory of your project e.g. same directory ashardhat.config.jsorfoundry.toml, run:crytic-compile.Crytic-compile will generatecrytic-export/contracts.jsoncontaining the AST/ABI and bytecodes of the contracts.Runcrytic-compile --helpfor more options.Library LinkingIf your project useslibrarieswith external functions, they can be linked to their deployed address with the--compile-librariesflag. For example, if you have a librarySafeMathdeployed at0xff, you can link it with:crytic-compile.--compile-libraries"(SafeMath, 0xff)"If you are fuzzing with Echidna or Medusa, follow thistutorial on linking libraries.As a librarySee thelibrary documentation.
Package: crytic-compile-master
# Crytic-compile
[![Build Status](https://img.shields.io/github/workflow/status/crytic/crytic-compile/CI/master)](https://github.com/crytic/crytic-compile/actions?query=workflow%3ACI)
[![Slack Status](https://empireslacking.herokuapp.com/badge.svg)](https://empireslacking.herokuapp.com)
[![PyPI version](https://badge.fury.io/py/crytic-compile.svg)](https://badge.fury.io/py/crytic-compile)Library to help smart contract compilation. It includes support for:
- Direct solc compilation
- [Brownie](https://github.com/iamdefinitelyahuman/brownie)
- [Buidler](https://github.com/nomiclabs/buidler)
- [Dapp](https://dapp.tools/dapp/)
- [Embark](https://embark.status.im/)
- [Etherlime](https://github.com/LimeChain/etherlime)
- [Etherscan](https://etherscan.io/) (including several alt-chain explorers and testnets)
- [Foundry](https://github.com/foundry-rs/foundry/)
- [Hardhat](https://github.com/nomiclabs/hardhat)
- [Truffle](https://truffleframework.com/)
- [Waffle](https://github.com/EthWorks/Waffle)See the [Configuration](https://github.com/crytic/crytic-compile/wiki/Configuration) documentation for advanced usages.The plugin is used in Trail of Bits tools, including:
- [Slither](https://github.com/crytic/slither)
- [Echidna](https://github.com/crytic/echidna)
- [Manticore](https://github.com/trailofbits/manticore/)
- [evm-cfg-builder](https://github.com/crytic/evm_cfg_builder)## Installation`bash pip3 installcrytic-compile`## Usage### Standalone`bashcrytic-compile. `Crytic-compile will generatecrytic-export/contracts.jsoncontaining the AST/ABI and bytecodes of the contracts.Runcrytic-compile –helpfor more options.### As a librarySee the [library documentation](https://github.com/crytic/crytic-compile/wiki/Library-Documentation).
Package: cryton-cli
Cryton CLICryton CLI is a command line interface used to interact withCryton Core(its API).Cryton toolset is tested and targeted primarily onDebianandKali Linux. Please keep in mind thatonly
the latest version is supportedand issues regarding different OS or distributions maynotbe resolved.For more information see thedocumentation.Quick-startPlease keep in mind thatCryton Coremust be running and its REST API must be reachable.Make sureDockeris installed.
Optionally, check out these Dockerpost-installation steps.The following script starts an interactive shell using Docker.dockerrun-it--networkhostregistry.gitlab.ics.muni.cz:443/cryton/cryton-cliUse the following to invoke the app:cryton-cliFor more information see thedocumentation.ContributingContributions are welcome. Pleasecontribute to theproject mirroron gitlab.com.
For more information see thecontribution page.
Package: cryton-core
Cryton CoreCryton Core is the center point of the Cryton toolset. It is used for:Creating, planning, and scheduling attack scenariosGenerating reports from attack scenariosControlling Workers and scenarios executionCryton toolset is tested and targeted primarily onDebianandKali Linux. Please keep in mind thatonly
the latest version is supportedand issues regarding different OS or distributions maynotbe resolved.For more information see thedocumentation.Quick-startTo be able to execute attack scenarios, you also need to installCryton WorkerandCryton CLIpackages.Optionally you can installCryton Frontendfor a non-command line experience.Make sure Git, Docker, and Docker Compose plugin are installed:GitDocker ComposeOptionally, check out these Dockerpost-installation steps.The following script clones the repository and runs the Docker Compose configuration. The compose file contains the necessary prerequisites
(Postgres, PgBouncer, RabbitMQ), Cryton Core itself (listener and REST API), and a proxy that allows access to the Cryton Core's REST API
athttp://0.0.0.0:8000/.gitclonehttps://gitlab.ics.muni.cz/cryton/cryton-core.gitcdcryton-core
sed-i"s|CRYTON_CORE_RABBIT_HOST=127.0.0.1|CRYTON_CORE_RABBIT_HOST=cryton-rabbit|".env
sed-i"s|CRYTON_CORE_DB_HOST=127.0.0.1|CRYTON_CORE_DB_HOST=cryton-pgbouncer|".env
sed-i"s|CRYTON_CORE_API_USE_STATIC_FILES=false|CRYTON_CORE_API_USE_STATIC_FILES=true|".env
dockercomposeup-dFor more information see thedocumentation.ContributingContributions are welcome. Pleasecontribute to theproject mirroron gitlab.com.
For more information see thecontribution page.