Saravanan666/pypi-org huggingface dataset:
Package: easy-python
Easy pythonThis tool is for news in python lenguage programming, the commands are in spanish to help the spanish comunnityFunctionsThis is a beta. Here are the functionsConsole Functions:print = consola.escribir('parameters')input = consola.recibir('input parameters')Numbers functions:(sum) = numeros.sumar(number,number,number,etc...)(subtract) = numeros.restar(number,number,number,etc...)(multiply) = numeros.multiplicar(number,number,number,etc..)/ (divide) = numeros.dividir(arg1, arg2) 'Only you can divide 2 numbers'Extra functions:Timezone = You can see the Timezone in your pc, you can customize it how this example: "extras.tiempo('%d-%m-%Y %H:%M:%S')" if you dont want to customize it, you can place how this "extras.tiempo()"FutureNew console commands and extras functions!
Package: easyqc
EasyQCSeismic Viewer for numpy arrays using pyqtgraph.Usage InstructionsThe goal is to provide an interactive seismic viewer at the python prompt.
NB: if you useipythonuse the%gui qtmagic command before !Keyboard Shortcutsctrl + A: increase display gain by +3dBctrl + Z: deacrease display gain by +3dBctrl + P: take screenshot to clipboardctrl + P: propagates display accross all windows (same window size, same axis, same gain)ctrl + S: captures screenshot of the plot area in the clipboardup/down/right/left arrows: pan using keyboardMinimum working example to display a numpy array.importnumpyasnpimportscipy.signalfromeasyqc.guiimportviewseisntr,ns,sr,dx,v1=(500,2000,0.002,5,2000)data=np.zeros((ntr,ns),np.float32)data[:,500:600]=scipy.signal.ricker(100,4)# create a record with 400 traces and 2500 samplesnoise=np.random.randn(ntr,ns)/10# create an arbitrary layout of 2 receiver lines of 200 sensorsa,b=np.meshgrid(np.arange(ntr/2)*8+2000,np.arange(2)*50+5000)# the header is a dictionary of numpy arrays, each entry being the same length as the number of tracesheader={'receiver_line':b.flatten(),'receiver_number':a.flatten()}# show the array with the headerfig0=viewseis(data,si=.002,h=header,title='clean')fig1=viewseis(data+noise,si=.002,h=header,title='noisy')Install Instructions1) From pypi using pip:pip install easyqc2) From sources using pip:I suggest to use a virtual environment and install in development mode (in-place)git clone https://github.com/oliche/easyqc.git
cd easyqc
pip install -e .3) From sources using anacondaI suggest to install a conda environment and run from sources in development mode.Installationgit clone https://github.com/oliche/easyqc.git
conda env create -f conda_easyqc.yaml
conda activate iblenv
conda develop ./easyqcUpdateconda env update --file conda_easyqc.yaml --pruneOr for a complete clean-up:conda env list
conda env remove -n easyqcAnd follow the install instructions above.ContributionPypi Release checklist:flake8
rm-fRdist
rm-fRbuild
pythonsetup.pysdistbdist_wheel
twineuploaddist/*#twine upload --repository-url https://test.pypi.org/legacy/ dist/*Test wheel:virtualenveasyqc--python=3.8source./easyqc/bin/activate
pipinstalleasyqc#pip install -i https://test.pypi.org/simple/ easyqc  # doesnt' seem to install deps
Package: easyqr
easyqr介绍便捷的二维码转换工具 支持文字转二维码,二维码转文字(支持中文,支持本地上传以及在线二维码)安装pip install easyqr使用说明fromeasyqrimporteasyqrasqr#文字转二维码print(qr.code('这是一个简单的二维码转换模块'))#上传二维码url=qr.upload('01.png')#解析二维码print(qr.online(url))使用So easy!注意因为使用了网络接口,大量识别转换因为网络及服务器压力缘故,可能会丢失或者拒绝访问,本模块目前为实验性质设计,如需频繁使用,请与服务商草料二维码洽谈商务合作,请知悉!更新版本内容1.0调优完毕,正式版本0.6一些不值得注意的优化0.5一些不值得注意的优化0.4一些不值得注意的优化0.3一些不值得注意的优化0.21.优化了导入包的逻辑机构,现在只需要 import easyqr 就可以了2.缺失的依赖项自动导入,无需手动添加依赖项0.1初步框架
Package: easy-queryset
Easy QuerySetDjango 的 ORM 是我用过最好用的，但无法快速地单独使用，按照官方指示，要写好几行代码。这个项目只是做了小小的封装，只是为了方便地使用 Django Models 来写脚本。安装pipinstalleasy_queryset示例fromeasy_querysetimportmodels,add_mysql# 数据库配置add_mysql('localhost','username','password','example_db')add_mysql('localhost','username','password','example_db',app_label="example")classUsers(models.Model):id=models.CharField()name=models.CharField()email=models.CharField()classMeta:app_label="default"# 指定数据库配置db_table="users"classGroup(models.Model):id=models.CharField()name=models.CharField()email=models.CharField()classMeta:app_label="example"# 指定数据库配置db_table="group"Users.objects.all()Group.objects.all()
Package: easyrabbit
easyrabbitActually easy RabbitMQ utilities for common tasks. Hides the
complexities of complete control packages likepikaby wrapping
common use cases in minimalistic wrappers.InstallationYou can install directly from Pypi:pip install easyrabbitor from git using pip:pip install git+https://github.com/scnerd/easyrabbitUsageSimple routingReaderRoutingReaderprovides a fully asynchronous way to read from an
exchange via a queue bound with a routing key. It launches a subprocess
to free the calling program from being responsible for its computational
overhead; within its own process, it usespika’s asynchronous
connection, enabling the highest possible performance client. The API
exposed mimics a simple queue, if, after all, what you really want is to
use a RabbitMQ queue as if it were a Python queue.withRoutingReader(url,exchange,queue_name,routing_key)asreader:formsginreader:print("Received the following message:{}".format(msg))If the reader is needed persistently, you can also launch and terminate
it yourself:reader=RoutingReader(url,exchange,queue_name,routing_key)reader.start()# Do things with the readerreader.close()Note that even though the reader is asynchronous, you don’t need to wait
for it to be ready before using it. All calls hang on the process pipe
that sends data from the client process to your parent code. If you want
to make sure that the connection is fully established before using it,
however, you can usewait_till_ready:reader=RoutingReader(url,exchange,queue_name,routing_key)reader.start()try:reader.wait_till_ready(timeout=5)exceptTimeoutError:raiseRuntimeError("RabbitMQ reader took more than 5 seconds to launch")Whilereader.getis blocking, a non-blocking equivalent isreader.get_nowait, or your code can explicitly check that a value is
available first usingnot reader.empty(). Iterating overreaderjust repeatedly callsget, and hence is blocking and will only end
when the reader is closed. Usereader.getall_nowait()to obtain all
values currently in the queue.All result objects are byte arrays.WritingThe analogous utility for writing isRoutingWriter, which provides a
nearly identical interface for writing messages to RabbitMQwithRoutingWriter(url,exchange,routing_key)aswriter:formsginmsgs:writer.put(msg)RoutingWriterexposes much the same API asRoutingReader, except
of course exposingputinstead ofget.
Package: easyrbac
# easyrbac[![Build Status](https://travis-ci.org/prodicus/rbac.svg?branch=master)](https://travis-ci.org/prodicus/rbac)Role based Access Control implementation using the standard library**NOTE**: _Still under heavy development._## Demo### Role creation and assignment of role to a User```pythonfrom easyrbac import Role, Userdefault_role = Role('default')admin_role = Role('admin')default_user = User(roles=[default_role])admin_user = User(roles=[admin_role, default_role])```### User resource access permissions allocation```pythonfrom easyrbac import AccessControlList, User, Roleeveryone_role = Role('everyone')admin_role = Role('admin')everyone_user = User(roles=[everyone_role])admin_user = User(roles=[admin_role, everyone_role])acl = AccessControlList()acl.resource_read_rule(everyone_role, 'GET', '/api/v1/employee/1/info')acl.resource_delete_rule(admin_role, 'DELETE', '/api/v1/employee/1/')# checking READ operation on resource for user `everyone_user`for user_role in [role.get_name() for role in everyone_user.get_roles()]:assert acl.is_read_allowed(user_role, 'GET', '/api/v1/employee/1/info') == True# checking WRITE operation on resource for user `everyone_user`# Since you have not defined the rule for the particular, it will disallow any such operation by default.for user_role in [role.get_name() for role in everyone_user.get_roles()]:assert acl.is_write_allowed(user_role, 'WRITE', '/api/v1/employee/1/info') == False# checking WRITE operation on resource for user `admin_user`for user_role in [role.get_name() for role in everyone_user.get_roles()]:if user_role == 'admin': # as a user can have more than one role assigned to themassert acl.is_delete_allowed(user_role, 'DELETE', '/api/v1/employee/1/') == Trueelse:assert acl.is_delete_allowed(user_role, 'DELETE', '/api/v1/employee/1/') == False```## TODO- [ ] Adding hierarchical roles, which represent parent<->child relations- [ ] Adding this on top of Bottle/Flask- [ ] Make it `pip` installable## IssuesYou can submit the issues on the issue tracker [here](https://github.com/prodicus/rbac/issues)## Literature material- [http://profsandhu.com/articles/advcom/adv_comp_rbac.pdf](http://profsandhu.com/articles/advcom/adv_comp_rbac.pdf)- [http://www.comp.nus.edu.sg/~tankl/cs5322/readings/rbac1.pdf](http://www.comp.nus.edu.sg/~tankl/cs5322/readings/rbac1.pdf)- [https://symas.com/ansi-rbac-intro/](https://symas.com/ansi-rbac-intro/)- [https://pythonhosted.org/Flask-Principal/](https://pythonhosted.org/Flask-Principal/)- [https://iamfortress.net/2014/11/24/using-role-for-access-control-is-not-rbac/](https://iamfortress.net/2014/11/24/using-role-for-access-control-is-not-rbac/)- [http://cloudify.co/2016/04/15/simple-secure-role-based-access-control-rest-api-rbac-server-devops-cloud-orchestration.html](http://cloudify.co/2016/04/15/simple-secure-role-based-access-control-rest-api-rbac-server-devops-cloud-orchestration.html)## LICENSEGPLv3
Package: easyrec
easyrec:一个简单易用的pytorch推荐框架目的：该框架目的是方便研究人员快速搭建自己的推荐算法。该框架参考于DeepCTR、DeepCTR-Torch、fun-rec、Recommender-System-with-TF2.0框架在输入层使用了更灵活的接口方便研究人员的使用。框架流程1.导入数据集2.定义输入以及输出3.建立模型4.评测模型搭建方法：继承Base类__init__的编写defmodel(Base):def__init__(self,)
Package: easyrec-python
## Introductioneasyrecis an open-sourced and easy-to-use recommender system toolbox based on tensorflow 2.## LicenseThis project is released under the [MIT License](https://github.com/xu-zhiwei/easyrec/blob/main/LICENSE).## Featuresmodel | source |—- | —- |Logisitic Regression (LR) | |Multi-layer Perceptron (MLP) | |Factorization Machine (FM) | Steffen Rendle. Factorization Machines. ICDM. 2010. |Deep Structured Semantic Model (DSSM) | Po-Sen Huang et al. Learning Deep Structured Semantic Models for Web Search using Clickthrough Data. CIKM. 2013. |Field-aware Factorization Machine (FFM) | Yuchin Juan et al. Field-aware Factorization Machines for CTR Prediction. RecSys. 2016. |Deep Crossing | Ying Shan et al. Deep Crossing: Web-Scale Modeling without Manually Crafted Combinatorial Features. KDD. 2016. |Factorization-machine supported Neural Network (FNN) | Weinan Zhang. Deep Learning over Multi-field Categorical Data – A Case Study on User Response Prediction. ECIR. 2016. |Product-based Neural Network (PNN) | Yanru Qu et al. Product-based Neural Networks for User Response Prediction. ICDM. 2016. |Wide & Deep | Heng-Tze Cheng et al. Wide & Deep Learning for Recommender Systems. RecSys. 2016. |Attentional Factorization Machine (AFM) | Jun Xiao et al. Attentional Factorization Machines:Learning the Weight of Feature Interactions via Attention Networks. arXiv. 2017. |Neural Factorization Machine (NFM) | Xiangnan He et al. Neural Factorization Machines for Sparse Predictive Analytics. SIGIR. 2017. |Neural Matrix Factorization (NMF) | Xiangnan He et al. Neural Collaborative Filtering. WWW. 2017. |Deep & Cross Network (DCN) | Ruoxi Wang et al. Deep & Cross Network for ad Click Predictions. ADKDD. 2017. |Deep Factorization Machine (DeepFM) | Huifeng Guo et al. DeepFM: A Factorization-Machine based Neural Network for CTR Prediction. arXiv. 2017. |Extreme Deep Factorization Machine (xDeepFM) | Jianxun Lian et al. xDeepFM: Combining Explicit and Implicit Feature Interactions for Recommender Systems. KDD. 2018. |Multi-gate Mixture-of-Experts (MMOE) | Jiaqi Ma et al. Modeling Task Relationships in Multi-task Learning with Multi-gate Mixture-of-Experts. KDD. 2018. |Automatic Feature Interaction (AutoInt) | AutoInt: Automatic Feature Interaction Learning via Self-Attentive Neural Networks. CIKM. 2019. |## Installation` pip installeasyrec-python`## Getting StartedPlease refer to the [documentation](https://easyrec-python.readthedocs.io/en/latest/) for the basic usage ofeasyrec.
Package: easy-redis
Easy to use python redis(for kb first)Compared with kafka, redis has the following characteristics in publishing and subscribing:Produced messages are immediately consumed by consumers.Fast speed, small data( < 10KB).Allow message loss.No need to save sent messages.Quick StartInstallation: pip install easy_redis1.configEdit conf/conf.ymlredis: # redis config
  server: 127.0.0.1 # redis server
  port: 6379
  channel_subscribe: # channel if need, multiple
    - channel_1
    - channel_2
  channel_produce: channel_1_result # producer default channel2.demo-consumerimport json
from easy_redis.redis_consumer import EasyRedisConsumer

def start_consumer():
    redis_consumer = EasyRedisConsumer('../conf/conf.yml')
    print('consumer iterator started')
    for record in redis_consumer:
        if record['type'] == 'message':
            print('data', json.loads(record['data']))
        else:
            print('subscribe', record)

if __name__ == "__main__":
    start_consumer()3.demo-consumer-taskimport json

from easy_redis.redis_consumer import EasyRedisConsumer
from easy_redis.redis_producer import EasyRedisProducer

redis_producer = EasyRedisProducer('../conf/conf.yml')


def consumer_task(record):
    """
    consumer callback
    :param record: object
    :return:
    """
    print('consumer_task', (
        'received type: {}, channel: {}, msg: {}'.format(record['type'], record['channel'], record['data'])))
    if record['type'] == 'message':
        print('data', json.loads(record['data']))
    if record['channel'] == 'channel_1':
        redis_producer.produce_msg({'type': 'task result'})


def start_consumer():
    redis_consumer = EasyRedisConsumer('../conf/conf.yml')
    print('consumer task started')
    redis_consumer.subscribe(fn=consumer_task)


if __name__ == "__main__":
    start_consumer()4.demo-producerfrom easy_redis.redis_config import EasyRedisConfig
from easy_redis.redis_producer import EasyRedisProducer


def demo_produce_msg():
    redis_producer = EasyRedisProducer('../conf/conf.yml')
    redis_producer.produce_msg({'name': 'ksust'})


def demo_produce_msg_with_config():
    config = EasyRedisConfig('../conf/conf.yml')
    print('config', config.__dict__)
    redis_producer = EasyRedisProducer(config)
    redis_producer.produce_msg({'name': 'ksust'})
    redis_producer.produce_msg_channel('channel_1', {'name': 'ksust'})


if __name__ == "__main__":
    demo_produce_msg()
    demo_produce_msg_with_config()5.demo-redis_connfrom easy_redis.redis_conn import EasyRedis
def demo_redis():
    redis_conn = EasyRedis('../conf/conf.yml').redis_conn
    redis_conn.set('demo', 'value')
    print(redis_conn.keys('*'))


if __name__ == "__main__":
    demo_redis()
Package: easyrepl
Easy REPLA simple python class for creating Read Evaluate Print Line (REPL) interfaces.RequirementsThis module requires Python 3.7 or higher.Additionally this library makes use of theGNU readline Interface, so it will only work on Unix based systems.UsageThis module exposes theREPLclass which can be used to quickly create a REPL interface. REPL will read in a line of user input via a custom input function that allows you to edit the text by moving the cursor with the arrow keys, as well as view the history of previous inputs.fromeasyreplimportREPLforlineinREPL():# do something with lineprint(line)which will create a simple echoing REPL interface that repeats any line you type into it.>>>hello
hello
>>>world
world
>>>The input allows common terminal shortcuts like:Ctrl-D: exit REPLCtrl-L: clear screenCtrl-R: search historyLeft/Right Arrow: move cursor left/rightUp/Down Arrow: previous/next historyCtrl-A: move cursor to beginning of lineCtrl-E: move cursor to end of lineAlt-B: move cursor backward one wordAlt-F: move cursor forward one wordCtrl-K: delete from cursor to end of lineCtrl-U: delete from cursor to beginning of lineCtrl-W: delete from cursor to beginning of wordAlt-D: delete from cursor to end of wordCtrl-C: no operationetc.Additionally, multi-line input can be achieved by starting a line with triple quotes ("""or'''), and ending the final line with a matching triple quote. Triple quotes in the middle of a line will have no effect.>>> """
... This is a multi-line input
... that will continue until
... the user enters three quotes
... at the end of a line
... """
This is a multi-line input
that will continue until
the user enters three quotes
at the end of a line
>>>Note that a single newline will be stripped from the beginning and end of the input if present.
Package: easyrepr
Python decorator to automatically generate repr stringsExample>>>fromeasyreprimporteasyrepr...>>>classUseEasyRepr:...def__init__(self,foo,bar):...self.foo=foo...self.bar=bar......@easyrepr...def__repr__(self):.........>>>x=UseEasyRepr(1,2)>>>repr(x)'UseEasyRepr(foo=1, bar=2)'InstallationEasyrepr isavailable on PyPI, so the easiest method of installation is viapip.$pipinstalleasyreprFor more installation options, see theInstallation section in the User Guide.DocumentationFor full documentation, check outeasyrepr on Read the Docs.User GuideAPI ReferenceContributingIf you’re interesting in contributing to easyrepr, or just want to learn more
about how the project is built or structured, please read ourCONTRIBUTING
file.LicenseTheMIT licenseapplies to all files in the easyrepr repository and source
distribution. See theLICENSE filefor more info.
Package: easyreq
EasyReqPython package for easyrequirements.txtfile generating or alteringpip install easyreq

easyreq --helpProject searchingIt will find all packages imports used in files in project, check installed version of the package usingpip freezeand generaterequirements.txtfile based on thatIf you want to search current directory you are in:/home/user/projectName$ easyreqOr you can specify a path to a project you want to use it for:/home/user/projectName$ easyreq /home/user/someOtherProjectName/Altering already existing requirements.txtIf a package in rquirements has specified version (eg.urllib3==1.25.7) it will be changed as a minimum (eg.>=1.25.7) and added a maximum one version higher (eg.<2)If a package has no version specified it will try to find installed one usingpip freezeand add it as a minimum and add a maximum one version higherIn order to alterrequirements.txtfile:/home/user/projectName$ easyreq /home/user/projectName/requirements.txtOr:/home/user/projectName$ easyreq requirements.txt
Package: easy-requp
Easy ReqUpEasily manage Python packages based on requirements file specifications.Runpython -m easy_requp -hfor help:usage: python -m easy_requp [-h] [-V] [-v] [-q] [-y] [-s] [-r FILE]
                            [-a ACTION [ACTION ...]] [-n] [-u]
                            [-o OPTION [OPTION ...]] [-m N] [-d] [-c LIMIT]

Easily manage Python packages based on requirements file specifications.

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show version information and exit
  -v, --verbose         let pip give more output, option is additive and can be
                        used up to 3 times, try 'pip help' for more information
  -q, --quiet           let pip give less output, option is additive and can be
                        used up to 3 times, try 'pip help' for more information
  -y, --yes             don't ask for confirmations
  -s, --skip-python-version-check
                        don't check for Python updates
  -r FILE, --requirement FILE
                        install from the given requirements file, try 'pip help
                        install' for more information (default: easy_requp.txt)
  -a ACTION [ACTION ...], --actions ACTION [ACTION ...]
                        perform selected actions: all, reqs, deps, orph, check,
                        clean (default: all)
  -n, --not             invert actions selection
  -u, --user            pass the --user flag to pip, try 'pip help install' for
                        more information
  -o OPTION [OPTION ...], --options OPTION [OPTION ...]
                        additional pip options, escape leading '-' character
                        with '\', try 'pip help' for more information
  -m N, --max-pip-retries N
                        maximum number of retries if pip fails (default: 3)
  -d, --deps_complete   repeat dependencies upgrade until no changes are
                        detected
  -c LIMIT, --cache LIMIT
                        clean cache if folder size is above given limit, in MB
                        (default: 200)

examples:
  python -m easy_requp                  # full system upgrade
  python -m easy_requp -r FILE          # use given requirements file
  python -m easy_requp -a reqs          # upgrade required packages
  python -m easy_requp -na clean        # do not clean pip cache
  python -m easy_requp -u               # pass --user flag to pip
  python -m easy_requp -uo \--log PATH  # pass --user and --log flags to pip

Report any bugs to: <https://github.com/lucatrv/easy-requp>
Package: easyros
easyrosros的安装与开发工具使用环境Ubuntun 20.04.6 LTS使用指令pip install easyros
easyros功能自动安装ros(包换源)github链接转镜像自动创造工作空间其它因为ROS的环境安装过于复杂，所以我直接调用了鱼香的安装脚本https://github.com/fishros/install
Package: easyrpc
An easy to use rpc framework for enabling fast inter-process, inter-container, or inter-host communicationEasily share functions between hosts, processes, containers without the complexity of defining non-native python types or proxy modules.Documentationeasyrpc.readthedocs.ioKey FeaturesNo predefined proxy functions at the remote endpointsEasily group and share functons among hosts / processes using Namespaces / Namespace GroupsProxy functions parameters are validated as if defined locally.Optional: pre-flight encyrptionNo strict RPC message structure / size limit, within json serializable constraintsQuick Start$ virtualenv -p python3.7 easy-rpc-env

$ source easy-rpc-env/bin/activate

(easy-rpc-env)$ pip install easyrpcBasic Usage:# server.py
from fastapi import FastAPI
from easyrpc.server import EasyRpcServer

server = FastAPI()

ws_server_a = EasyRpcServer(server, '/ws/server_a', server_secret='abcd1234')

@ws_server_a.origin(namespace='public')
def good_func_a(a, b, c):
    print(f"good_func_a {a} {b} {c}")
    return {"good_func_a": [a, b, c]}# client.py
import asyncio
from easyrpc.proxy import EasyRpcProxy

async def main():
    proxy = await EasyRpcProxy.create(
        '0.0.0.0', 
        8090, 
        '/ws/server_a', 
        server_secret='abcd1234',
        'namespace='public'
    )

    good_func_a = proxy['good_func_a']
    result = await good_func_a(1, 5, 7)
    print(result)

asyncio.run(main())RecipesSee other usage examples inRecipesbasicclustersFastAPI-Shared-DatabaseGeneratorsSupported Functions Featuresasync def & defasync generators & generators*args, **kwargspositional & default parmetersTODO - type annotationsCommon Use CasesState sharing among forked workersShared Database connections / cacheShared QueuesWorker Pooling - Easy centralization for workers and distribution of work.Function Chaining