Saravanan666/pypi-org huggingface dataset:
Package: epythets
epythetsС помощью pymorphy извлекаем, нормализуем из текста множество эпитетов, сохраняя их в sqlite.Зачем?Так можно извлечь специфические эпитеты и неологизмы из текста для дальнейшего использования. Теоретически это что-то вроде частотного словаря для словосочетаний без вычисления частоты. Назову это "Словосочетарь".Зачем-зачем?Затем.Эпитеты?Словосочетания соответствующие шаблону< прилагательное | причастие в страдательном залоге > < существительное >при этом оба слова изначально согласованы по числу и полу. Перед сохранением оба слова приводятся в именительный падеж.Как использоватьУстановкаИз pypi:sudopip3installepythetsАльтернативые способы.СовместимостьПоддерживается только python3.8+. Если хочется что-то старее - можно форкнуть, поправить вmgrep.pyединственное использование:=на две отдельные строчки и установить из исходников.ОбучениеБД будет инициализирована в файле epythets.sqlite в текущей директории при первом запуске, если этого файла ещё нет. Путь можно переопределить параметром--db /your/db.sqlite, но его придётся указывать для каждого скармливаемого файла."Обучаем" на классике, чтобы типовые обороты не считались спецификой последующих текстов. На самом деле одного "Идиота" для этого мало - ~2.8к фраз. Метка (label) "idiot" внутри БД будет автоматически вычислена из имени файла.epythets--filenametexts/idiot.txtДообучим на нескольких произведениях Говарда Филиппса Лавкрафта. Из "Случая Чарльза Декстера Уальда" извлеклось около 2 500 фраз, а из "Хребтов Безумия" - 1 500, при значительно меньших длинах текста.В этом примере используется альтернативный подход с флагами утилиты - метку указываем явно, а файл читаем с stdin.epythets--label'wild'<texts/wild.txt
epythets--label'madness'<texts/at_the_mountains_of_madness.txt"Шлифанём" "Снами в Ведьмином Доме" - 662 фразы, но поскольку мы неплохо "обучились" ранее около 40-60% извлечённых фраз являются довольно-таки специфичными для этого произведения. Что и было моей исследовательской целью. Если увеличить объём первичного обучения, выйдет ещё точнее.epythets--filenametexts/witchhouse.txtМожно читать RSS-ленты, а не файлыВместо--filenameуказывайте--urlс адресом rss-фида. Параметр--labelавтоматически выставится в доменное имя ресурса плюс суффикс в виде сегодняшней даты. Могу порекомендовать поиграться со следующими ресурсами:https://tass.ru/rss/v2.xml
https://pritchi.ru/rss_latest
https://habr.com/ru/rss/all/all/
https://www.opennet.ru/opennews/opennews_all_utf.rss
https://www.linux.org.ru/section-rss.jspМожно наблюдать, насколько изменчивы слова, которыми описываются новости на этих ресурсах.Просмотр результатовКопаемся себе в извлечённых фразах:epythets--label=witchhouse--dumpСовременная РаботаЗамкнутое ПространствоДетские КостиСкрытый СтрахДругая НаходкаСтранные УмолчанияСкупые СведенияПятипалые ЛапкиМаленький ЧерепРежущий Слух...Как посмотреть статистику по файлам (сколько эпитетов из какого текста извлечено):epythets--statlabelcountilf_petrov:12_chairs3891gogol:viy243platon:gosudarstvo322dostoevsky:idiot2271lovecraft:madness1385lovecraft:wild1334lovecraft:witchhouse615limstin_python:fun_in_morrowind1362
Package: epython
epythonEPython is a typed-subset of the Python language useful for extending the language with new builtin types and methods.The goal is to be able to write things like NumPy, SciPy, Pandas, bitarray, and any other extension module of Python in this language and get equivalent or better perfomance than writing it using the C-API typically provided.This project is in development and extremely alpha.   You should not use this for anything.Learn more on this talkTravis Oliphant gave at PyData Austin 2019.If you are interested in contributing to the design and goals, then join the Discussion atOpenTeams SlackInstallationpip install epythonUsageepython extmodule.epy --runtime=cpythonProduces a compiled extension module for the given Python runtime.
Package: epytope
epytope - An Immunoinformatics Framework for PythonCopyright 2014 by Benjamin Schuber, Mathias Walzer, Philipp Brachvogel, Andras Szolek, Christopher Mohr, and Oliver Kohlbacherepytopeis a framework for T-cell epitope detection, and vaccine design. It offers consistent, easy, and simultaneous access to well established prediction methods of computational immunology.epytopecan handle polymorphic proteins and offers analysis tools to select, assemble, and design linker sequences for string-of-beads epitope-based vaccines. It is implemented in Python in a modular way and can easily be extended by user defined methods.Copyrightepytope is released under the three clause BSD license.Installationuse the following commands:pip install git+https://github.com/KohlbacherLab/epytopeDependenciesPython Packagespandaspyomo>=4.0svmlightPyMySQLbiopythonpyVCFh5py<=2.10.0Third-Party Software (not installed through pip)NetMHC predictor family (NetMHC(pan)-(I/II), NetChop, NetCTL) (http://www.cbs.dtu.dk/services/software.php)PickPocket (http://www.cbs.dtu.dk/services/software.php)Integer Linear Programming Solver (recommended CBC:https://projects.coin-or.org/Cbc)Please pay attention to the different licensing of third party tools.Framework summaryCurrentlyepytopeprovides implementations of several prediction methods or interfaces to external prediction tools.Cleavage PredictionProteasomal cleavage matrix-based prediction byDönnes et al.ProteaSMM byTenzer et al.NetChop3.1Epitope AssemblyApproach byToussaint et al.Bi-objective extension of approach byToussaint et al.Assembly with spacers bySchubert et al.Epitope PredictionSYFPEITHIMHCNuggets2.0, 2.3.2MHCflurry1.2.2, 1.4.3NetMHC3.0, 3.4, 4.0NetMHCII2.2, 2.3NetMHCpan2.4, 2.8, 3.0, 4.0, 4.1NetMHCIIpan3.0, 3.1, 4.0, 4.1, 4.2, 4.3PickPocket1.1NetCTLpan1.1Epitope SelectionOptiTopeStability PredictionNetMHCstabpan1.0TAPP PredictionTAP prediction model byDoytchinova et al.SMMTAPGetting StartedUsers and developers should start by reading ourwikiandIPython tutorials. A reference documentation is also availableonline.How to CitePlease citeSchubert, B., Walzer, M., Brachvogel, H-P., Sozolek, A., Mohr, C., and Kohlbacher, O. (2016). FRED 2 - An Immunoinformatics Framework for Python. Bioinformatics 2016; doi: 10.1093/bioinformatics/btw113and the original publications of the used methods.
Package: eqassertions
assertions in__eq__methods.>>> from eqassertions import Any, NotNone, IsA, IsTrue, Match
>>> data = {"a": 1, "b": 2}
>>> assert {"a": 1, "b": Any()}
>>> assert {"a": 1, "b": NotNone()}
>>> assert {"a": 1, "b": IsA(int)}
>>> assert {"a": 1, "b": IsTrue()}
>>> assert v == {"a": 1, "b": Match(r"\d")}
>>> assert v == {"a": 1, "b": Match(r"[a-z]")}
Traceback (most recent call last):
 ...
AssertionError
Package: eq-django-admin-row-actions
Equality Django Admin Row ActionsAllows you to easily define a drop-down 'actions' menu that is appended as the final column in your model's changelist and perform actions on that row.Menu items can call urls or methods, can be disabled, have tooltips, etc.I've extracted this from code written forhttp://hireablehq.com/. The admin there has Bootstrap available but I've modified this version to use a standalone jQuery dropdown.InstallationInstall from PyPI:pipinstalleq-django-admin-row-actionsAdd to INSTALLED_APPS:INSTALLED_APPS=[...'eq_django_admin_row_actions',...]Add the mixin to your ModelAdmin:fromeq_django_admin_row_actionsimportAdminRowActionsMixin...classExampleAdmin(AdminRowActionsMixin,admin.ModelAdmin):...Define aget_row_actionsmethod on your ModelAdmindefget_row_actions(self,obj):row_actions=[{'label':'Edit','url':obj.get_edit_url(),'enabled':obj.statusisnot'cancelled',},{'label':'Download PDF','url':obj.get_pdf_url(),},{'label':'Convert','url':reverse('convert_stuff',args=[obj.id]),'tooltip':'Convert stuff',},{'divided':True,'label':'Cancel','action':'mark_cancelled',},]row_actions+=super(ExampleAdmin,self).get_row_actions(obj)returnrow_actionsThe first three menu items are simple links to a url you provide by whatever means you choose.The final one defines 'action' instead of 'url'. This should be the name of a callable on yourModelAdminorModelclass (similar toModelAdmin.list_display).You can add mouseover tooltips to each individual actions with the 'tooltip' dictionary key, and enable/disable individual actions for each individual object with the 'enabled'.Special option 'divided' can be passed to any item to display horizontal rule above it.CreditsInspired (and code based on):django-object-actionsIncludes parts ofjquery-dropdown; credits go to Cory LaViska.Inspired (and code based on):django-admin-row-actions
Package: eq-dj-test-back
=====
eq-dj-test-back'eq-dj-test-back' is a Django reusable app to help you make unit tests easier.RequirementsdjangorestframeworkQuick startpip install eq-dj-test-back==Add "eq_dj_test_back" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
'eq_dj_test_back',
...
]Import the module like this:from eq_dj_test_back.base_test_view import ViewsTestBase (or whatever TestBase you need)And that's all.UsageTesting a model functionality:Import the module:
from eq_dj_test_back.base_test_model import ModelTestBaseMake a class for every class you need to test:
class TestSomeModel(ModelTestBase):
fixtures = ['some_model.json']def setUp(self):
      > Include the objects or what you feel necesary for the tests

  def test_some_method(self):
      self.base_test_model('method_name', 'maybe an assertion value', kwargs_of_method)
      > This will make an assertion with the specified dataTesting a serializer functionality:Import the module:
from eq_dj_test_back.base_test_serializer import SerializerTestBaseMake a class for every class you need to test:
class TestSomeSerializer(SerializerTestBase):
fixtures = ['some_serializer.json']def setUp(self):
      self.data = {required data for feed a serializer class}
      self.serializer = SerializerClass
      > Include the objects or what you feel necesary for the tests

  def test_some_method(self):
      self.assertEqual(
                      self.base_test_ser('method_name', kwargs_of_method),
                      'assertion_value or something')
      > This will make a separated assertion using the instance or whatever the method returnsTesting a view functionality:Import the module:
from eq_dj_test_back.base_test_view import ViewsTestBaseMake a class for every class you need to test:
class TestSomeView(ViewsTestBase):
fixtures = ['some_view.json']def setUp(self):
      self.user_pk = The pk used to authenticate the request
      self.to_path = 'identifier to feed the reverse method' for the url path
      self.data = {required data for generate a request}
      self.view = SomeView.as_view() the view that you want to test itself
      super(TestSomeView, self).setUp() used to extends the module's setUp method with the attrs before mentioned
  
  def test_some_method(self):
      self.base_test_view(
          'method', data, status_code_to_assert,
          self.get_path(self.to_path, kwargs to reverse function), kwargs to view function)
Package: eq-encrypt
=====
eq_encrypt version 0.0.5'eq_encrypt' is a Django reusable app to help you encrypt passwords.Quick startpip install eq_encrypt==Add "eq_encrypt" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
'eq_encrypt',
]And that's all.Usage:Encript:Run ./manage.py encrypt 
It will display the encrypted result in command window.
Package: eq-finances
eq_financesA biblioteca provém de módulos de cálculos de matemática financeira básicos, analises de investimentos, permitindo que o usuário realize cálculos financeiros complexos, análise de investimentos e construção de modelos financeiros de forma eficiente e personalizada.Vale ressaltar que há módulos que contém a utilização de APIS, para fins de obter informações de ações, dados financeiros, obter taxas de cambio e entre outras análises de dados financeiros.Instalaçãopip install eq_financesComo utilizarfrom eq_finances import *Exemplo de aplicabilidade de uma das funções básica:JurosSimples(principal, taxa, tempo)Exemplo de uso:#calcula o valor total (incluindo juros) resultante de um empréstimo com juros simples.fromeq_financesimport*jurossimples=JurosSimples(1000,0.05,2)print(jurossimples)# Calcula o montante total, incluindo juros compostos, ganho a partir de um capital inicial durante um determinado período de tempo a uma taxa de juros fixa.fromeq_financesimport*juroscomp=JurosCompostos(1000,0.03,3)print(juroscomp)
Package: eqfit
eqfit - Equation fitting automation made simple with python.Note: this is an early evaluation of what such a package might look like. If you are interested in contributing and/or guiding the direction of this project please feel free to reach out.Installationeqfit can be installed using pip:pip install eqfitTo get started quickly from source follow these steps:Clone or download this repository and launch python within the folder.Make a python environment to run in. Always recommend the use of virtual environments for safety. Must be Python3 and currently only tested with Python 3.8Install requirement.txt file into your new python environmentpip install -r requirements.txtTest the module is working on the example dataset using the demo.py script in the example directory.python demo.pyIf everything worked you should get the following figure output:ExampleThis example will cover the API to call eqfit on your data.
It will utilise theexample datasetprovided.
In this example, there are five input parameters (A-E) and one test parameter (Y).
We want to figure out a suitable polynomial equation for predicting Y from the parameters A-E.
The below is a heavily commented version of thedemo python scriptto explain how we do this.importeqfit# import eqfitimportpandasaspd# import pandas to load data# example data loaded you can replace this with the data you wish to fit to.# this does not have to be a .csv, but you will need to get it in a pandas dataframe.data=pd.read_csv('example/exampledata.csv')# create eqfit objecteq=eqfit.fitter()# sets the input parameters for the equation you want make.# you can check these at any point by calling eq.Xeq.set_inputs(data.drop(columns=['Y']))# sets the prediction column (i.e. what you want the equation to calculate)# you can check this at any point by calling eq.Yeq.set_target(data['Y'])# splits the data in testing and trainingeq.train_test_split()# runs the polyfit which iteratively goes through different polynomial degrees and attempts to fit the data.eq.do_polyfit(verbose=True)# makes an equation from the best performing polynomial degree tested# removes polynomial terms where the effective coefficient is below 100eq.make_equation(param_notation=['A','B','C','D','E'],coef_cutoff=100)# uses the created equation to calculate the equation predicted target values and compares them to the ones set by eq.set_target.eq.evaluate_equation()This covers the various functions included. For further details on each function please refer to the docstring by calling the help function. For example:help(eq.do_polyfit)DependenciesNumpySklearnPandasMatplotlib
Package: eqi-analysis
EQI Factor Analysis PackageFeatures:EQIDF: EQI extension of Pandas Dataframe, which aims to simplify the Pandas Dataframe usage, providing a smoothier (though non-pythonic) syntax. EQIDF provides extended methods, as well as keeping all the existing Pandas methods available.EQI Refdata: fetch common refdata from our curated list, e.g. marketvalEQI Analysis: Single Factor Analysis with UBS EQI AlphalensEQI Factor: A formatted DataFrame containing a single column of alpha factor value, indexed by asset and date. You can upload your Factor to the database, and share with othersEQI Portfolio: A time series equity holdings weighted by an EQI Factory. You can analyze the portfolio performance based on UBS EQI Alphalens.How to install:Prerequisites:Please make sure that your conda profile configuration file (located at ${home_folder}/.condarc) is similar to examples/example.condarcInstall:condainstall-cjinzha098718eqi-analysisGetting started:Go to examples/single_factor_analysis_example.html, see how to use this packageKnown Issues:Please feel free to create a issue in case of any problems.
Package: eqid
eqidPython package to retrieve the most recent earthquake information in Indonesia.How does it work?This package collect data from BMKG, the official government-run agency for meteorology, climatology, and geophysics.How to useCall the functionimport eqid

result = eqid.get_data()The variable result will contain a dictionary with the detail of the latest earthquake.{'date': '15 September 2021', 
 'time': '07:49:47 WIB', 
 'magnitude': 5.4, 
 'depth': 20,
 'location': {'lat': 1.28, 'long': 122.16}, 
 'center_description': 'Pusat gempa berada di laut 85 km BaratLaut Boalemo',
 'affected_description': 'Dirasakan (Skala MMI): III Boalemo, II - III Buol, 
 II Manado, II Bone Bolango, II Gorontalo, II Toli-toli'}
Package: eqip
eqipElectron-microscopyQuasiIsotropicPrediction scriptsDependencies are specified asinstall_requiresinsetup.py. On top of that, you need theCNNectomequasi-isotropicbranchon yourPYTHONPATH. It is likely, yet untested, that the master branch works as well.Install in conda enviornment on GPU cluster:condacreate-neqip-cconda-forge-ccpapepython=3.6tensorflow-gpu=1.3
condaactivateeqip
condainstall-cconda-forge-ccpapepipz5py
condainstall-cconda-forgescikit-imagenumpyscipy
condainstall-cconda-forgeh5pyrequestsurllib3idna
condainstall-cconda-forgecython
condainstall-cconda-forgepymongo
pipinstallmalis==1.0
pipinstallgit+https://github.com/hanslovsky/eqipHigh Memory Usage/Unexpectedly Many Threads/ProcessesSet environment, as needed:exportOMP_NUM_THREADS=1exportMKL_NUM_THREADS=1exportOPENBLAS_NUM_THREADS=1exportVECLIB_MAXIMUM_THREADS=1exportNUMEXPR_NUM_THREADS=1numpy/nump#11826
Package: eqi-utils
EQI Data Loader and ExporterFeatures:Download DataFrame from data vendors via S3Manage and store analysis views locally or remotely on S3Download DataFrame from RESLIVE DBKey Concept:Bundle: a group of data files from a specific vendorDataFile: a file which contains data, e.g. Company_Daily within
linkup bundleView: a DataFrame serialized into a parquet file, can be stored
locally, or remotely on S3DBView: a DataFrame which contains the result of a SQL queryHow to install:Install this package using condacondainstall-cjinzha098718eqi-utilsGetting started:Create EQI home folderCreate a folder named ‘.eqi’ in your home folder, on Windows,
create a folder named as ‘.eqi.’Go to examples/config.ini, set all the fields, and copy the
config.ini file to EQI home folder created in the above stepGo to examples/load_export_example.html, see how to use the
utilitiesKnown Issues:Failed at downloading large parquet datafilePlease install fastparquet using conda:condainstall-cconda-forgefastparquetPlease feel free to create an issue in case of any problems.
Package: eqjson
ejsonAn smart json,similar to the jquery, read and update the json data.一个小巧的、完全无依赖的类似jquery写法的读取和更改json的工具，可以按照json的层级或者某个属性读取json数据。Installing aelogpip install eqjsonUsage假如json数据如下：[
   {
      'object':{
         'name':'myLittleObject',
         'value':[
            {
               'key2':'value2',
               'key3':'value3',
               'key1':'value1'
            },
            {
               'key33':'value33',
               'key1':'value11'
            },
            {
               'key333':'value333',
               'key1':'value111'
            }
         ],
         'type':'list',
         'valueAsString':[
            'one',
            'two'
         ]
      }
   }
]from eqjson import EasyQueryjson

# 实例化
ejson_obj = EasyQueryjson(json_doc)
# 查询
ejson_obj.get_value("object.name")
ejson_obj.get_value("object.valueAsString.0")
# update
ejson_obj.change_value("object.name", "updatename")
ejson_obj.change_value("object.value.2", ["five", "four"])
# add
ejson_obj.append_value("object.valueAsString", "three")
ejson_obj.append_value("object.valueA", {"test":456})
# remove
ejson_obj.remove_value("object.valueAsString")
ejson_obj.remove_value("object.value")

# 具体的查询参数详情如下基本用法：如果要获取name值：则写法为0.object.name如果json最外层是{}获取name值：则写法为object.name如果要获取valueAsString中的第一个值：则写法为0.object.valueAsString.0如果json最外层是{}获取valueAsString中的第一个值：则写法为object.valueAsString.0获取value列表中的第一个值的key1值：则写法为0.object.value.0.key1获取value列表中的所有的key1值：则写法为0.object.value.key1， 则结果为['value1','value11', 'value111']高级用法：支持通过属性确定值，如果json是无序的，要获取key1值为value1所在节点的key3的值，则写法为0.object.value[key1=value1].key3支持通过多属性确定值，比如要获取key1值为value1，key2值为value2，所在节点的key3的值，则写法为0.object.value[key1=value1，key2=value2].key3支持多层属性，比如要获取name为myLittleObject的以上的值：则写法为[name=myLittleObject].object.value[key1=value1].key3单测100%文件覆盖率，92%的行覆盖率
Package: eqldata
Eql Rt Data Client - v1.6The official Python client for subscribing to 1 minutes Data.Equal Solution is a India-based professional Setup providing realtime and historical data services to stock market traders – to help them take correct trading decisions. Founded in 2007 , we aim to revolutionize delivery of Financial Data in Indian and international exchanges.We distribute low latency, realtime data of various Stock Exchanges . The data is disseminated in multiple charting and technical analysis platforms which support desktop, server, mobile and web editions.We employs reliable, proven and sophisticated techniques to deliver direct exchange datafeeds into multiple Charting and Technical Analysis platforms. We are  focused to deliver authentic and accurate live data of Stock Market to their clients – at affordable price.We also provide  Historical EOD and IEOD data for Amibroker™ , MetaStock™ , Advance Get™ & many others.[Equalsolution] (https://equalsolution.com/) (c) 2023. Licensed under the MIT License.DocumentationInstalling the clientpip install eqldataUsageAuthorization --  Generate Auth Token & getting instrument listUse ExamplefromeqldataimportDataClientfromeqldataimportgenerate_auth_token,get_instrument_listusername='your_username'#emailpassword='your_password'auth_token=generate_auth_token(username,password)ifauth_token:print("Response: ",auth_token)instrument_list=get_instrument_list(auth_token)ifinstrument_list:print(instrument_list)Subscribing to Instruments for 1 Minutes Market data
You can subscribe to Instruments from server using the provided client.from eqldata import DataClientList of topics to subscribe toinstrument_list = ["MCXFUT:CRUDEOILM_I", "MCXFUT:CRUDEOILM_II"]Subscribe to Instruments dataDataClient(auth_token, topics_to_subscribe)Start listening for messagesclient.listen()Realtime Use ExamplefromeqldataimportDataClientauth_token='your_auth_token'instrument_list=["MCXFUT:CRUDEOILM_I","MCXFUT:SILVERM_I"]# Create a DataClient instanceclient=DataClient(auth_token,instrument_list)try:whileTrue:response=client.listen()ifresponseisnotNone:print("Received:",response)exceptKeyboardInterrupt:client.stop_listening()client.disconnect()How to get After Market Data --
Historical EOD Datafrom eqldata import generate_auth_token, get_instrument_list, get_EOD, get_1MARKET_DATAEOD & Daily EOD Use Example --# EOD Historical EOD data usefromeqldataimportget_EOD# your authentication tokenauth_token='authentication token'instruments=["NSEIDX:INDIA_VIX","NSEIDX:NIFTY_100","NSEIDX:NIFTY_200","NSEIDX:NIFTY_50"]for_date="2023-12-27"result=get_EOD(auth_token,instruments,for_date)print(result)# Daily EOD 1 Minutes data usefromeqldataimportget_1MARKET_DATA# your authentication tokenauth_token='authentication token'instruments=["NSEIDX:INDIA_VIX","NSEIDX:NIFTY_100","NSEIDX:NIFTY_200","NSEIDX:NIFTY_50"]for_date="2023-12-27"result=get_1MARKET_DATA(auth_token,instruments,for_date)print(type(result))
Package: eQmaster
eQmasteris a python package that allows user to retrieve stock data fast and compact.Main Features- useget(stock_list, from_date, to_date)to get stock data betweenfrom_dateandto_date. Date is formatted asYYYY-MM-DD. The latestto_datevalue is one day prior to the current date.useget_current_quote(stock_symbol)to get most updated stock quote. It is currently supported for single stock prices quote.useis_market_open(market_name)to determine if given market is open for trades. It is currently supported for Taiwanese stock market only.usesetup(settings=None)to determine if given market is open for trades. It is currently supported for Taiwanese stock market only.