Saravanan666/pypi-org huggingface dataset:
Package: replication-monitor
|replmon-logo| Replication Monitor=============================A GTK+ desktop app which can create, monitor and delete AvanceDB, CouchDB, PouchDB or IBM Cloudant replication jobs.Runs on Linux/Gnome but can be persuaded to run on `Windows <https://github.com/RipcordSoftware/replication-monitor/wiki/Platform:-Windows>`_ or `OSX <https://github.com/RipcordSoftware/replication-monitor/wiki/Platform:-OSX>`_.Features:---------- Create new replications: single, multiple, to/from remote, drag and drop replication- View active replication tasks- Create and delete databases- Compact databases- Set database revisions- Browse to selected databases- Backup and restore databasesRequirements:-------------- Python 3- GTK+ (pygobject)- Keyring- Requests- BunchInstallation------------Install the latest release on ``pypi`` with ``pip``:.. code-block:: bash$ pip3 install replication-monitorAlternately pull the latest code from our ``github`` repository:.. code-block:: bash$ git clone https://github.com/RipcordSoftware/replication-monitor.git$ cd replication-monitor$ ./replication_monitor.pyIf you clone from ``git`` make sure you satisfy the ``requirements.txt`` file.Screenshot:----------|replmon-mainwindow|.. |replmon-logo| image:: https://raw.githubusercontent.com/RipcordSoftware/replication-monitor/master/ui/replication-monitor-small.png.. |replmon-mainwindow| image:: http://cdn.ripcordsoftware.com/images/replication-monitor/replication-monitor-debian8.png
Package: replicator-cli
Replicator is a task runner for backups.You can describe your tasks declarative with YAML file and run task files with CRON.Replicator supports notifications, it's useful for tasks that take a lot of time.InstallInstall from pippip install replicator-cliOr build:Clone repositorygit clone https://github.com/vitonsky/replicator.gitBuild package with runmake buildInstall packagepip install dist/replicator-0.0.1-py3-none-any.whlUsageusage: replicator [-h] config

Util to replicate backups from primary storage to a mirrors

positional arguments:
  config      Path to config file

optional arguments:
  -h, --help  show this help message and exitTo use util, first create task file.Example task file for a local devicetasks:
    # Task may have name
    - name: 'Copy files to backup disk'
      run: rclone ./backups /path/to/local/mirror1

    - name: 'Upload to S3'
      run: rclone ./backups s3Replica:backups

    - name: 'Replicate on server'
      # Just run replicator on server with their own config and end locally
      run: ssh replicator@backup-server 'nohup replicator ./backups.yml > ./replicator.log 2>&1 </dev/null &'Example task file for backup server# Notifications config
notifications:
    telegram:
        # Define should notifications been sent
        enabled: true
        # Token for bot who will sent notifications
        # How to: https://core.telegram.org/bots/tutorial#getting-ready
        botToken: '123:token'
        # User IDs to receive notifications
        userIds:
            - 123456

# Replicate backup from main storage
tasks:
    - run: rclone s3Replica:backups s3Mirror1:backups
    - run: rclone s3Replica:backups s3Mirror2:backups
    - run: rclone s3Replica:backups s3Mirror3:backupsTODOSupport few entries for replicationProvide commands to run, instead of pathsProvide instructions to install as binarySplit the codeAdd docker image
Package: replicators
replicatorsPyPi PackagedescriptionThis is a personal package used to hold code patterns used for multithreading and multiprocessing.usagepip install replicatorpyenv install 3.8.0
pyenv virtualenv 3.8.0 app_3.8
pyenv activate app_3.8

import replicators.multiprocess as mult

data_frame: pd.DataFrame = pd.DataFrame(
        columns=["This",
                 "is",
                 "a",
                 "test",
                 "to",
                 "check",
                 "a_function"],
        data=[[5, 2, "b", 3, 4, 5, 3],
              [7, 2, "b", 3, 4, 5, 3],
              [8, 2, "b", 3, 4, 5, 3],
              [3, 2, "b", 3, 4, 5, 3],
              [2, 2, "b", 3, 4, 5, 3],
              [8, 2, "b", 3, 4, 5, 3],
              [2, 2, "b", 3, 4, 5, 3],
              [8, 2, "b", 3, 4, 5, 3],
              [19, 2, "b", 3, 4, 5, 3],
              [53, 2, "b", 3, 4, 5, 3],
              [11, 2, "b", 3, 4, 5, 3],
              [16, 2, "b", 3, 4, 5, 3]])
    data: list = list(data_frame.T.to_dict().values())
    mult.multiprocess_me(1, print, data, False)
Package: repliclust
██████  ███████ ██████  ██      ██  ██████ ██      ██    ██ ███████ ████████ 
██   ██ ██      ██   ██ ██      ██ ██      ██      ██    ██ ██         ██    
██████  █████   ██████  ██      ██ ██      ██      ██    ██ ███████    ██    
██   ██ ██      ██      ██      ██ ██      ██      ██    ██      ██    ██    
██   ██ ███████ ██      ███████ ██  ██████ ███████  ██████  ███████    ██Descriptionrepliclustis a Python package for generating synthetic datasets with clusters. It allows you to generate many different datasets that are geometrically similar, butwithoutever touching low-level parameters like cluster centroids or covariance matrices.FeaturesReproducibly generate clusters with defined geometric characteristicsManage cluster overlaps, shapes, and probability distributions through intuitive, high-level controlsDefine custom dataset archetypes to power reproducible and informative benchmarksInstallationpipinstallrepliclustQuickstartfromrepliclustimportArchetype,DataGenerator# Create archetype for 5 oblong clusters with typical "aspect ratio" of 3oblong_clusters=Archetype(n_clusters=5,dim=2,n_samples=500,aspect_ref=3,aspect_maxmin=1.5,name="oblong")# Define the data generatordata_generator=DataGenerator(archetype=oblong_clusters)# Sample data points X and class labels yX,y,_=data_generator.synthesize()User Guide / DocumentationFor a full user guide and documentation, visit the project website:https://repliclust.org.CitationTo referencerepliclustin your work, please cite:@article{Zellinger:2023,
  title   = {repliclust: Synthetic Data for Cluster Analysis},
  author  = {Zellinger, Michael J and B{\"u}hlmann, Peter},
  journal = {arXiv preprint arXiv:2303.14301},
  doi     = {10.48550/arXiv.2303.14301},
  year    = {2023}
}
Package: replicon-handler
Handler for Replicon Web ServicesReplicon-Handler is built inPythonand is maintained byRajendra Kodumuri. Interactions with Replicon WebServices are made possible, using therequestslibrary.Repetitive white noise, so to speak, can be avoided; Making working with the Replicon WebServices a breeze.Click herefor more details.fromreplicon_handlerimportRepliconHandlerreplicon=RepliconHandler(company_key='company_key',username=None,password=None,authentication_token='',method='post',headers=headers,log_file=r'log_path\log_file.log')headers['Content-Type']='application/json'headers['X-Replicon-Application']='CompanyKey_OperationName_Version'headers['Authorization']=f'Bearer{replicon.authentication_token}'Installing Replicon HandlerReplicon Handler is distributed via PyPI, installing it is as simple as:>pipinstall-Ureplicon-handlerUser Guide available onRead the Docs.Supported FeaturesGeneration of Replicon tenant details and API URLs highlighted below, can be eliminated, to make working with the Replicon WebServices a breeze.Finding the Slug.Finding the Swimlane.Generating URLs for:Analytics API.User Audit Log API.Web Service End Points.get_all_users=replicon.web_service('UserService1.svc','GetAllUsers')payload={}all_users=replicon.connection_handler(get_all_users,payload)Retries requests that failed due to connections failures.Handles component call limitations of the Replicon Gen3 API.Availability of concurrent threaded and asynchronous request handlers, out of the box.get_user_details=replicon.web_service('UserService1.svc','GetUser2')payloads=[{'userUri':user['uri']}foruserinall_users]all_users_details=replicon.threaded_handler(get_user_details,payloads,5)
Package: replicPy
REPLICPY CREATED BY SUDHEESH SReplicPy is a user-friendly Python framework designed to simplify the development of web applications.
Inspired by Django, it offers a similar approach but focuses on providing a minimalistic and straightforward syntax.
With ReplicPy, developers can quickly build web applications without sacrificing simplicity or flexibility.Create a "main.py" File and copy past this codefrom replicpydemo.core import defaultsetups
import sysifname== "main":
'''
Main file
'''
defaultsetups(sys.argv)"urls.py" fileURLLIST = [
('',function)
]"View.py"from replicpy.core import Response,JsonResponsedef index(param):# do code here!	

return Response('index.html',context={key:value})
or
return JsonResponse({key:value})
Package: replisync
Решение для синхронизации БД - RepliSyncОписаниеПринцип работыПараметры конфигурационного файлаУстановка и настройкаПолезные ссылкиИнструкция по локальному развороту replisync без docker для среды разработкиИнструкция по разделению БД ЗиК и БухгалтерииРешение для синхронизации БД - RepliSyncВерсии0.6.2BOBUH-20060 Явное указание версий celery и psycopg2.0.6.1BOBUH-20060 Исправление потенциальной ошибки при write-in-chunks = False;BOBUH-20060 Исправление логирования;BOBUH-20060 Добавление учета разбиения сообщения на чанки.0.6.0BOBUH-20060 Добавлен конфиг isort;BOBUH-20060 Добавление файлов с зависимостями и их использование в setup.py;BOBUH-20060 Формирование корректного начального LSN. Ошибка была связана с установкой дефолтного значения параметра, которое не равнялось None и приводило к невыполнению условия по получению restart_lsn реплики;BOBUH-20060 Определение максимального LSN и отправка именно его на фиксацию. Исключается случай, когда может прийти сообщение, где будет указан LSN меньше уже найденного максимального и его фиксация, которая может привести к повторному прогону сообщений;BOBUH-20060 Разделение файлов CHANGES.md и README.md;BOBUH-20060 Добавление файла MANIFEST.in;BOBUH-20060 Доработка setup.py в части указания версии Python 3, формирования описания проекта;BOBUH-20060 Оптимизация преобразования сообщений;0.5.8Добавлено логирование значения flush_lsn при отправке сообщения на уровне info, а также времени, потраченного на выполнение отправки сообщения, на уровне debug.0.5.7в Wal2JsonReceiver включен параметр write-in-chunks для чтения изменений из слота репликации по частям. Отправка изменений на обработку в рамках транзакции выполняется одним сообщением.скорректирован учет bool параметров из .conf0.5.6Добавлен параметр includes_extra для задания служебных таблиц, изменения по которым также нужно передавать в сообщенияхДобавлен необязательный параметр output_dir для указания директории, в которой в виде файлов сохраняется информация о синхронизируемых данных для последующей обработки.0.5.5добавлена возможность указания очереди, в которую будет отправлена задача,
если в изменениях присутствует определенная таблица. для этого в файл конфигурации
необходимо добавить секцию [routing] и указать соответствие очереди и перечня
таблиц (через запятую):[routing]
replisync_users = auth_user
replisync_contragent = contragent_supplier, contragent_corporation, contragent_person, contragent_address0.5.4Добавлен тип long_description в setup.pyСкорректирован .gitignore0.5.3Добавлена поддержка параметров
task_default_routing_key
task_default_queue
в replisync.conf для возможности отделить
replisync от общих очередей
Package: replit
>>> import replitThis repository is the home for thereplitPython package, which provides:A fully-featured database client forReplit DB.A Flask–based application framework for accelerating development on the platform.Replit user profile metadata retrieval (more coming here!).A simple audio library that can play tones and audio files!Open Source LicenseThis library is licensed under theISC Licenseand is free for you to use, change, or even profit from!SetupWith poetry already setup, you can set up the repl for development with:poetry installContinuous IntegrationRunning the database unitteststests/test_database.pydepends on the replhttps://replit.com/@util/database-test-jwt. You'll have access to this repl if you are a Replit employee. There's a secret
contained in that repl which you'll have to set as an environment variable in order to run the unittests.
Once you've done that, run the tests with:poetry run python -m unittest
Package: replit2
>>> import replit2This repository is the home for thereplit2Python package, which provides:A fully-featured database client forReplit DB.A Flask–based application framework for accelerating development on the platform.Replit user profile metadata retrieval (more coming here!).A simple audio library that can play tones and audio files!Open Source LicenseThis library is licensed under theISC Licenseand is free for you to use, change, or even profit from!
Package: replitapi
Replit APIDatabaseWorks exactly the same as the official implementation, but doesn't depend on Flask 1.1.2! See the official docs:https://replit-py.readthedocs.io/en/latest/api.html#module-replit.databaseWeb scraperget_user_data(query,mode="username")mode- What to query by. Can be"username"or"url".query- The item to look for. Must be in format with themode.Returns:LiteralObject({# LiteralObject just behaves like a class for this purpose. Keys = Attributes."favourite_langauges":[str(languages)],"cycles":int(cycles),"profile_picture":str(img_url)})get_repl_data(query,user="",mode="name")mode- What to query by. Can be"name"or"url".user- Specifies the user to search for if themodeis"name". Can be ommited if themodeis"url".query- The item to look for. Must be in format with themode.Returns:LiteralObject({# LiteralObject just behaves like a class for this purpose. Keys = Attributes."favourite_langauges":[str(languages)],"cycles":int(cycles),"profile_picture":str(img_url)})More to come!
Package: replitapi-JustFinnbarM
Replit APIDatabaseWorks exactly the same as the official implementation, but doesn't depend on Flask 1.1.2! See the official docs:https://replit-py.readthedocs.io/en/latest/api.html#module-replit.databaseWeb scraperget_user_data(query,mode="username")mode- What to query by. Can be"username"or"url".query- The item to look for. Must be in format with themode.Returns:LiteralObject({# LiteralObject just behaves like a class for this purpose. Keys = Attributes."favourite_langauges":[str(languages)],"cycles":int(cycles),"profile_picture":str(img_url)})get_repl_data(query,user="",mode="name")mode- What to query by. Can be"name"or"url".user- Specifies the user to search for if themodeis"name". Can be ommited if themodeis"url".query- The item to look for. Must be in format with themode.Returns:LiteralObject({# LiteralObject just behaves like a class for this purpose. Keys = Attributes."favourite_langauges":[str(languages)],"cycles":int(cycles),"profile_picture":str(img_url)})More to come!
Package: replit-code-exec
replit-code-execAn interface to interact with Replit's code-exec API.This is an interface for the simpler use cases ofhttps://replit.com/@luisreplit/eval-python,
which is a stateless API that is optimized to be called from AI Agents so that they can perform
numerical reasoning through the evaluation of generated Python code. In general, this allows
the execution of an untrusted snippet of Python code and returns whatever is printed to standard
output / standard error as the result. The execution is done inside an ephemeral unprivileged
container created on the fly running in Replit Deployments usinghttps://github.com/omegaup/omegajailas code sandbox.To set up your own copy of the API server, you need to follow these easy 2-3 steps (the second
is optional):Open thehttps://replit.com/@luisreplit/eval-pythonin your browser and Fork it to your
account.(Optional): if you want to change the Docker container, runevalctl image ${DOCKER_IMAGE}(e.g.evalctl image python:3orevalctl image replco/python-kitchen-sink:latest).Open.replitand change theEVAL_FILENAME,EVAL_RUN_COMMAND,EVAL_ENVto suite the
new container, if needed.Deploy the Repl! (just pressingRunis not enough)This is only compatible with the Autoscale Deployments.Make sure you set theEVAL_TOKEN_AUTHDeployments secrets when
doing so for authentication.Sample usageHere is a small example of this library being used as a small math solver using OpenAI API:importopenaiimportreplit_code_execcode_exec=replit_code_exec.build_code_exec(...)defsolve_math(prompt:str,model:str='gpt-3.5-turbo-0613')->str:completion=openai.ChatCompletion.create(model=model,temperature=0.7,functions=[code_exec.openai_schema],function_call={"name":"code_exec"},messages=[{"role":"system","content":("You are an assistant that knows how to solve math "+"problems by converting them into Python programs."),},{"role":"user","content":("Please solve the following problem by creating a Python "+"program that prints the solution to standard output using "+"`print()`: "+prompt),},],)returncode_exec.from_response(completion)
Package: replitdev
replitPython ModuleTheRepl.itPython environment does not require any platform-specific code, however, these optional utilities provide additional platform features in a simple and accessible way.Example:Repl.it DBis an HTTP service, but an optional Python client (here!) is available.>>> import replitThis repository is the home for thereplitPython package, which provides:A fully-featured database client forRepl.it DB.[docs]Awork in progressRepl.it user profile lookup.[docs]A Flask application decorator for ensuring Repl.it Auth required on specific routes.[docs]& other helpful toys and utilities, like...A simple audio library that can play tones and audio files!Some helpful functions for displaying ANSI colors within interactive terminal sessions.Open Source LicenseThis library is licensed under theISC Licenseand is free for you to use, change, or even profit from!
Package: replite
repliteAn embeddable REPL, powered by JupyterLite.UsageTo embed the code console in your website:<iframesrc="https://replite.vercel.app/retro/consoles/index.html"width="100%"height="100%"></iframe>ConfigurationThe behavior and the look of the REPL can be configured via URL parameters.Select a kernel by defaultTo avoid the kernel selection dialog and choose a given kernel by default:<iframesrc="https://replite.vercel.app/retro/consoles?kernel=python"width="100%"height="100%"></iframe>Enable the toolbarThe toolbar can be enabled (opt-in) to add a couple of useful buttons:<iframesrc="https://replite.vercel.app/retro/consoles?toolbar=1"width="100%"height="100%"></iframe>Auto execute code on startupCustom starter code can automatically be executed on startup:<iframesrc="https://replite.vercel.app/retro/consoles?kernel=python&code=import numpy as np"width="100%"height="100%"></iframe>https://user-images.githubusercontent.com/591645/152204519-7980e9f6-ef56-4263-bb79-4fcf3e4fd2be.mp4Create your custom deploymentTBDDevelopment# create a new environmentmambacreate-nreplite-cconda-forgejupyterlab=3jupyter-packagingpythonnodejs-y
condaactivatereplite# Install JupyterLitepython-mpipinstalljupyterlite# Install package in development modepython-mpipinstall-e.# Link your development version of the extensionjupyterlabextensiondevelop.--overwrite# Rebuild extension TypeScript source after making changesjlpmrunbuild
Package: replit-keep-alive
This is a simple package to create a webserver to keep your repl online using a pinger. (such ashttps://up.rdsl.ga/). With the new version your console won't be spammed with useless error logs.Usage:First you need to install the package by going to the shell and pasting:pip install replit-keep-alivein there. Wait until it is finishedNow the actual code:Recommended version to use:fromreplit_keep_aliveimportWaitressStartWaitressStart()Defaultfromreplit_keep_aliveimportstartstart()#The text argument is optional. So we didn't use it hereOr with custom textfromreplit_keep_aliveimportstartstart("Hello world!")#The text argument is optional.Waitress version. (Without debug/development server)fromreplit_keep_aliveimportWaitressStartWaitressStart()#The text argument is optional. So we didn't use it here.Or the waitress version. With custom textfromreplit_keep_aliveimportWaitressStartWaitressStart("Hello world!")#The text argument is optional. So we didn't use it here.Paste these codeblocks somewhere in your code to get it working!
Thanks for using Replit keep alive ❤️!
Package: replit-object-storage
replit-object-storage-pythonThe library for interacting with Replit's Object Storage service, on Replit.UsageSetupStart by importing the Object Storage Client:fromreplit.object_storageimportClientThen to use the Client:client=Client()Downloading an Objectcontents=client.download_as_text("file.json")Uploading an Objectclient.upload_from_text("file.json",data)List Objectsclient.list()Delete an Objectcontents=client.delete("file.json")
Package: replize
replizeTools to create REPL interfaces.To install:pip install replizeExample usagereplizesystem commandConverts a command line into a REPL.Usage:$ replize <command>Example:$ replize ls
ls >>> -l
total 8
-rw-r--r-- 1 user group  0 Jan  1 00:00 __init__.py
-rw-r--r-- 1 user group  0 Jan  1 00:00 __main__.py
-rw-r--r-- 1 user group  0 Jan  1 00:00 __pycache__
-rw-r--r-- 1 user group  0 Jan  1 00:00 replize.py
ls >>> exit
$Recipesreplizeis meant to be used withfunctools.partialto make the kind of REPL
factory YOU want, by changing the defaults.If you want a given stdout or stderr value to have the effect of exiting the REPL,
you can set the callback to raise an exception that is in theexit_exceptions.
Package: replmon
Replmon is a simple MySQL replication monitor.UsageFirst, configure/etc/replmon.ini:[mysql]user=MySQL Usernamepasswd=MySQL Passwordhost=MySQL Host (leave empty for local unix socket)port=MySQL Port (leave empty for default port)Next, launch replmon:$replmonReplmon is meant to integrate with tools such as monit. See./examples.OutputReplmon will periodically check your MySQL replication status. Each time a check succeeds, Replmon willtouchthe/var/replmon.statusfile, so you can monitor changes to this file to know your status.The check interval is by default 10 seconds.LicenseSeeLICENSE.
Package: reploncli
REPL on CLIREPL extension to CLI appsExampleimportsysfromreploncliimportreploncliimportmy_cli_function,show_help# turn on REPL mode if the first command line argument is 'repl'lets_start_in_repl_mode=(sys.argv[1:]or[''])[0]=="repl"reploncli(my_cli_function,lets_start_in_repl_mode,show_help,">>> ")reploncli()Signature:defreploncli(cli_function,repl_mode=None,help=None,prompt=""):...Ifrepl_mode is Truethen REPL mode starts.Wrap your CLI entry pointCreatecli_functionby wrapping your CLI entry point that accepts one optional argument withargsto use as a replacement forsys.argvif given.Otherwise processsys.argvas normal.Shell commandsIf an input in REPL mode starts with.then it's run byos.system()after removing that dot.