Saravanan666/pypi-org huggingface dataset:
Package: sachima
English｜中文简体｜中文繁體SachimaSachima is a flexible framework for data-driven apps. It's a MIT licensed open source project written in python. We creates it because our data-driven requirements changes frequently, and we need data analyst having the ability to change online api and data visulization.Sachima helps you build apps that looks great and intelligently.You can use Sachima together withSuperset, or withsachima-ui.Featuresfeaturescreen castsdescriptionapiPublishing your python codes as a http/rpc api.BI platform intergrationWorking with BI platform Superset.Message SendingSending your data reports to email or sns.Data VisulizationVisulize your data.command lineCommand line tools.Getting StartedFirst you should havepythoninstalled.
Optionally if you already had a python env and you need a separate environment to run Sachima, you should installvirtualenvCheck your installation by running this in command linepython-VSometimes you need change python to python3 and pip to pip3.Sachima is on the Python Package Index(PyPI), so it can be installed with standard Python tools like pip:pipinstall-Usachima-U means update if existsOr you can install from the source code:gitclonehttps://github.com/DessertsLab/Sachima.gitcdSachima
pipinstall-e.Check sachima versionsachimaversionInit Sachima project. This will create YOUR_PROJ_NAME folder in current dir with sachima example apps.sachimainitYOUR_PROJ_NAMECd into your project dircdYOUR_PROJ_NAMERun Sachima. Please wait after your browser open until sachima flask server started.sachimarunIf your browser did not open. Openhttp://0.0.0.0:80manually in your browser(Chrome recommend).Update Sachima to latest version.sachimaupdateorpipinstall-UsachimaIf you want to contribute. The sachima start command will clone or pull Waffle source code from github and use npm to start it.sachimastartIf you had any problem ask inSachima github issuesor send me emailjianye.zhang@gmail.comor chat inhttps://gitter.im/sachima-python/community?source=orgpageGet middlewareGet pivot_table middleware from githubsachimagetDessertsLab/pivot_tableWorking with BI platformWorking with superset(WIP)Working with schima-ui(WIP)Contributors
Package: sachin-pkg-Sachinsen1295
oneNeuron python packageHow to use this packagefromoneNeuron.perceptronimportPerceptronmodel=Perceptron(eta=0.3,epochs=10)References -Official python docs for PYPIGithub action file for PYPIto get version-pip listto initiate setup.pypip install -e .to checkfrom sachin.perceptron import perceptron
Package: sachin-webserver
webserverThis is simple webserver that uses PHP development Environments.This helps you to use local-webserver for your developement environment.This feature comes along with the PHP you have on you computer.This program just help to access it with single command.This is a Command-Line ToolInstallation(Note: To use this module, you must have PHP installed in your devicewhich you can download from hereadd it in your system path variable)You can find .whl(wheel) file in dist folder.Navigate to dist folder and hit the following commandpython -m pip install wheel_file_name ; try pip3 if pip didn't work.WarningFor Python version above or equals to 3.10, only version 3 (webserver-1.0.3-py3-none-any.whl) will work.I don't know but I find it hard to install pathlib in these versions of python which is essential package for webserver.However, version 3 (webserver) uses pathlib2 so it is good to go.There is no difference between v2 and v3 otherthan pathlib packagesUsagesBasic Commandserver--helpThis displayes all the optionsStarting ServerserverThis start server on port 8000
URL:http://localhost:8000Passing Options
host: your hostname. Default localhost or 127.0.0.1port your port. Default 8000server--hosthostname--portport_number# These are optional parameter. These are not manditoryIf --update is passed along with the above flags, Host and Port will be added to settings.jsonOpening PHPMYADMINserver--adminThis opens phpmyadmin.cannot use this with --adminIt opens PhpMyAdmin under the port and host found in settings.json in installed folder orThe PORT and HOST passed with flag --port and --host previously.To Access and edit this file, --set can be use as a flag.server--setMore
Package: sacp
Simple Apache Config ParserWelcome to the Simple Apache Config Parser! This package is intended to ease the parsing/analysis of apache config files. This parser uses the Apache Config Lexer provided by thepygmentsproject.This project is still very much in its infancy, but my focus is on providing easy to use/understand object interfaces to analyze and modify apache config files while attempting to minimize the deltas between the original configs and the modified content. If this software is not quite meeting your needs, drop in an Issue and I'll do my best to address/help, but even if that's failing checkout this other neat parserapacheconfig.Example usageHere are some example usages. Note that these examples assume your current working directory properly set to match Include patterns. In the examples below this is for a CentOS installation where the root apache directory tends to be /etc/httpd/.ParsingParsing a config file is easy!fromsacpimport*cf=ConfigFile(file="conf/httpd.conf")This will automatically parse the httpd.conf from the current directory. Any dependent configs (e.g. those that are listed in an Include or IncludeOptional directive) will also be loaded.Walking the nodesVisiting all the nodes is also easy!fromsacpimport*defvisit(node):print("{}{}".format(node.depth*" ",type(node)))cf=ConfigFile(file="conf/httpd.conf")NodeVisitor([cf]).visit(visitor=visit)This visits all of the nodes in the config file, including it's children, and prints each node type with it's relative depth represented as well.ContributeWant to contribute? Awesome! Fork, code, and create a PR.
Package: sacreddeer
How to useClone the repo and enter the project folder.Install package by running the command:pip install sacreddeerCreate bot user with namesacred_deerin your Slack team
and copy his token provided by Slack.Export bot token as the environment variable:export DEER_TOKEN=123k-jkj213123kjkjk...To run the bot, execute command:deerAsk your stupid questions in Slack channel with@sacred_deer.Default language of the Deer is Russian, you can ask him for answer
in one of the other languages by addingen,uaordeafter the@sacred_deer.
Package: sacred-nbextension
# sacred-nbextension## Develop` conda install notebook nbsetuptools-canaconda-nb-extensionspython setup.py develop cdsacred-nbextensionpython setup.py install--prefix$CONDA_ENV_PATH--enable--symlink`Now you are ready to start testing with:`JUPYTER_CONFIG_DIR=$CONDA_ENV_PATH/etc/jupyterjupyter notebook `## DistributionOnce you are happy with your extension you can run:` conda build conda.recipe-canaconda-notebbok`And upload your package to [Anaconda-Cloud](http://anaconda.org). So everybody can
have access to your brand new extension.> Generated with [generator-nbextension](http://anaconda.org).
Package: sacrud
sacrudSACRUD will solve your problem of CRUD interface for SQLAlchemy.
Originally created forpyramid_sacrud, but then in a separate projectLook how easy it is to use:CREATEfrom.modelsimportDBSession,Groupsfromsacrud.actionimportCRUDdata={'name':'Electronics','parent_id':'10',}group_obj=CRUD(DBSession,Groups).create(data)print(group_obj.name)If the entry already exists, just add the optionupdate=True.from.modelsimportDBSession,Groupsfromsacrud.actionimportCRUDdata={'id':6,# existing entry'name':'Electronics','parent_id':'10',}group_obj=CRUD(DBSession,Groups).create(data,update=True)print(group_obj.name)READfrom.modelsimportDBSession,Groupsfromsacrud.actionimportCRUDgroup_obj=CRUD(DBSession,Groups).read()print(group_obj.name)UPDATEfrom.modelsimportDBSession,Groupsfromsacrud.actionimportCRUDgroup_obj=CRUD(DBSession,Groups).update(1,{'name':'Chemistry'})print(group_obj.name)DELETEfrom.modelsimportDBSession,Groupsfromsacrud.actionimportCRUDCRUD(DBSession,Groups).delete(1)M2M and M2O dataFor adding multiple data for m2m or m2o use endinng[], ex.:from.modelsimportDBSession,Usersfromsacrud.actionimportCRUDCRUD(DBSession,Users).create({'name':'Vasya','sex':1,'groups[]':['["id", 1]','["id", 2]']})It support composit primary key.Wraps your SQLAlchemy sessionfromsqlalchemy.ormimportscoped_session,sessionmakerfromsacrudimportCRUDSessionSession=scoped_session(sessionmaker(class_=CRUDSession))DBSession=Session()DBSession.sacrud(User).delete(1)Wraps your zope.sqlalchemy sessionfromsqlalchemy.ormimportscoped_session,sessionmakerfromzope.sqlalchemyimportZopeTransactionExtensionfromsacrudimportcrud_sessionmakerDBSession=crud_sessionmaker(scoped_session(sessionmaker(extension=ZopeTransactionExtension())))DBSession.sacrud(User).delete(1)Now CRUD available from DBSession.group_obj=DBSession.sacrud(Groups).create(data)print(group_obj.name)InstallationInstall from github:pip install git+http://github.com/sacrud/sacrud.gitPyPi:pip install sacrudSource:python setup.py installContributeIssue Tracker:http://github.com/sacrud/sacrud/issuesSource Code:http://github.com/sacrud/sacrudDocs:http://sacrud.readthedocs.orgSupportIf you are having issues, please let me know. I have a mailing list
located atsacrud@uralbash.ruand IRC channel #sacrudLicenseThe project is licensed under the MIT license.
Package: sacrud_deform
sacrud_deformForm generotor for SQLAlchemy models.Installdevelop version from sourcepipinstallgit+https://github.com/sacrud/sacrud_deform.gitpipinstallsacrud_deformUsefromsacrud_deformimportSacrudFormform=SacrudForm(obj=obj,dbsession=DBSession,request=request,table=MyModel)form_html=form().render()Support and DevelopmentTo report bugs, use theissue trackerorwaffle board.We welcome any contribution: suggestions, ideas, commits with new futures, bug
fixes, refactoring, docs, tests, translations etc.If you have question, contact mesacrud@uralbash.ruor IRC channel #sacrud
Package: sa-csgo
STORM Agent - CS:GOA python application that provides faster and user-friendly operations for cs:go server administrators via CLI or GUI.Mainly meant to be used together with STORM Server and/or STORMsys appliances.
Supports Ubuntu 18.04+.Authors@devdanetraFeaturesEasy to useGUIInstall/UpgradeSteamCMDInstall/UpgradeCS:GO Dedicated ServerVersions selectorStart server & easily access consoleAuto update(Coming Soon)Updates you via email or telegram if a new patch is available.(Coming Soon)RequirementsPython 3.10InstallationTo installSA-CS:GOyou can use pip:pipinstallsa-csgoDocumentationopens guisa-csgoguishow available commands and optionssa-csgo--helpInstalls latest SteamCMD versionsa-csgoinstallsteamcmdInstalls Counter Strike server, multiple versions are availablesa-csgoinstallcsgoserver
Package: sact.recipe.gitrepository
This simple recipe for zc.buildout fetches data from a given repository
and stores it into its part’s directory. A simple task using this
could look like this:[myapp]
recipe=sact.recipe.gitrepository
repository=git://github.com/securactive/sact.recipe.gitrepository
rev=7c73978b55fcadbe2cd6f2abbefbedb5a85c2c8cThis would store the repository under ${buildout:directory}/parts/myapp
and keep it at exactly this revision, no matter what happens on the
server.The recipe has following options:repositoryThe absolute URL of the repository to be fetchedrevA revision/commit within this repository the environment
should use.branchIf you want to stay up to date with a certain branch other than
“master”, use this.pathsList of relative paths to packages to develop. Must be used together
with as_egg=true.newestThis overrides the newest-option of the global setting for this
partas_eggSet to True if you want the checkout to be registered as a
development egg in your buildout.cache-nameName of the repository in the download-cache directory.recursiveFollow submodules (Note that submodules are not cloned from the download
cache).Offline installationIf you want to install a part from the download-cache, this is now possible, too:[buildout]
parts = myapp
download-cache = /var/cache/buildout
install-from-cache = true

[mylib]
recipe = sact.recipe.gitrepository
repository = http://domain.com/repo.gitWith this configuration, the recipe will look for /var/cache/buildout/repo and
clone it into the local parts/ folder.The recipe also supports an additional “cache-name” setting that lets you
configure the folder name of the repository in the download cache.Version 1.2 (2013-12-03)Add a example in BuildoutPorting code to Python 3Version 1.1 (2013-12-03)Typos in the documentationVersion 1.0 (2013-11-28)Initial version
Package: sact.recipe.jinjatemplate
=========================sact.recipe.jinjatemplate=========================sact.recipe.jinjatemplate is a Buildout recipe for generating filesusing Jinja2 templates. It's a friendly fork ofamplecode.recipe.template (no more maintained).Buildout Options================* template-file (required): One or more Jinja2 template file paths.* target-file (required): One of more target file paths. The number of files must match the number of template files.* base-dir: Base directory of the Jinja2 environment. Template file paths are relative to this directory. Default is the Buildout directory.* target-executable: One or more boolean flags (yes|no|true|false|1|0) indicating the executability of the target files. If only one flag is given it is applied to all target files.* eggs: Reserved for a list of eggs, conveniently converted into a pkg_resources.WorkingSet when specified.Additional options are simply forwarded to the templates, and options from all the other parts are made available through ``parts.<part-name>.<option-name>`` and ``parts[<part-name>][<option-name>]``.Lists of Values===============The `split` filter was removed in the 1.2. It is still possible for arecipe option to contain one or more values, separated by whitespace::#!/bin/sh{% for cmd in cmds.split() %}echo "{{ cmd }}"{% endfor %}Minimal Example===============foo.txt is created from foo.txt.jinja2 without any extra options::[buildout]parts = foo[foo]recipe = sact.recipe.jinjatemplatetemplate-file = foo.txt.jinja2target-file = foo.txtLarger Example==============foo.txt is created from myapp/foo.txt.jinja2, bar.sh is created from myapp/bar.sh.jinja2, the second will be executable, and both templates can utilize the additional options specified::[buildout]parts = foo[foo]recipe = sact.recipe.jinjatemplatebase-dir = myapptemplate-file =foo.txt.jinja2bar.sh.jinja2target-file =foo.txtbar.shtarget-executable =falsetrueproject_name = Another Exampleauthor = MeTemplating Shell Scripts========================If you use this recipe to template shell scripts, it is STRONGLYrecommanded to use the filter 'shell_quote' to avoid bad surprises::#!/bin/shrm -rf -- {{ path|shell_quote }}Version 1.3 (2015-07-07)------------------------* Added Jinja function to generate a random stringVersion 1.2.1 (2015-01-27)--------------------------* Fix packaging informationVersion 1.2 (2015-01-23)------------------------* Updates tests* Add the 'type' builtin in the Environment globals* Update the documentationVersion 1.1 (2015-01-21)------------------------* Update bootstrap.py.* Add a 'shell_quote' Jinja filter.* Cleanup code.* Python3 compliance (seems to work fine with 3.4).* Add some python builtins like (any, all, bool, zip, sorted, len, int, min, max) available in templates.* Add more tests.Version 1.0 (2013-11-27)------------------------* Initial version
Package: sact.recipe.postgresql
Overview========This package is a `zc.buildout`_ recipe which allows to install a custom versionof the `PostgreSQL`_ database server, locally to the package you are working on.It can install the database server from:* source: this is handy if you want to quickly test your application with anew release of `PostgreSQL`_ or with a new development snapshot;* pre-compiled binary: if you already have a compiled version of PostgreSQL,you can also reuse it to speed up the buildout process.The recipe will give you several tools in the ``bin/`` directory to control theserver. Thus, you will be able to start and stop it, launch a command lineutility on the server, and so on.It makes use of `hexagonit.recipe.cmmi`_ and `hexagonit.recipe.download`_behind the scenes, so all options for these recipes are also valid... _zc.buildout: http://www.buildout.org.. _PostgreSQL: http://www.postgresql.org.. _hexagonit.recipe.cmmi: http://pypi.python.org/pypi/hexagonit.recipe.cmmi.. _hexagonit.recipe.download: http://pypi.python.org/pypi/hexagonit.recipe.downloadSupported options=================The recipe supports the following options:adminAministrator accounts to create. Defaults to ``postgres``.superusersSuper-users accounts to create. Defaults to ``root``.usersUser accounts to create.locationDestination of Postgresql. Defaults to the buildout section name.urlDownload URL for the target source version of Postgresql (required ifurl-bin is empty).url-binDownload URL for the target binary version of Postgresql. This option isalways used if it is set.conf_dirFolder of configuration files (the folder must exist). Defaults to ${location}.postgresql.confCustom Postgresql configuration. Two options are required:- ``data_directory``- ``unix_socket_directories`` (``unix_socket_directory`` for older versionsof PostgreSQL).verbose-confIf ``true``, include defaults reported by postgres server into generatedconfiguration file. Defaults to false.Binary url==========The recipe can detect automatically your platform within *(arch)s* in the url.The syntax must follow the Python convention (read the sys.platform documentation).The goal is to use a CI tool on various platforms without create an buildoutfile to each one.The binary mode is useful when you use a CI tool: you can test quickly the newcode.Examples========Simple example::[pg92]recipe = sact.recipe.postgresqlurl = http://ftp.postgresql.org/pub/source/v9.2.2/postgresql-9.2.2.tar.bz2conf-dir = /etc/postgresql/9.2postgresql.conf =data_directory = '/srv/postgresql/9.2/db'unix_socket_directories = '/var/run'More options::[pg92]recipe = sact.recipe.postgresqlurl = http://ftp.postgresql.org/pub/source/v9.2.2/postgresql-9.2.2.tar.bz2configure-options =--without-readline--with-pythonmake-options =-j10conf-dir = /etc/postgresql/9.2postgresql.conf =data_directory = '/srv/postgresql/9.2/db'unix_socket_directories = '/var/run'listen_addresses = ''fsync = offsynchronous_commit = offfull_page_writes = offwal_buffers = 1024kBwal_writer_delay = 5000msChangelog=========.. to be generated by ./autogen.sh
Package: sad
What is this?Don’t be sad, turn that messy spreadsheet into actual data! This is for people new to programming who need to do stuff with typical messy spreadsheet data.It’s also for anyone who could use quick clean access to the kind of spreadsheet data passed around in offices.It’s not for data scientists and huge data sets (fortunately there’s plenty of support for that elsewhere).How to installpip3 install sadHow to access the spreadsheetThese examples assume a simple spreadsheet file calledhr.csvthat contains these values:Full Name     Employee ID   Start Date
Sue Storm     1000          1/1/18
Kitty Pride   1001          2/5/18Use thisimportstatement:from sad import SpreadsheetThe spreadsheet data needs to be in CSV format. Open the file and pass the file object toSpreadsheet.from_csv():hr_csv = open('hr.csv')
sheet = Spreadsheet.from_csv(hr_csv)Accessing cells by indexTheSpreadsheetcan be treated as a 2-dimensional array, so if you want the value of the second cell down and third cell over, you can do this:value = sheet[1][2]
print(value)This prints:1/1/18Accessing cells by header nameIf you use a header name to get to a cell, the first row of the spreadsheet is assumed to be the headers. To get the same cell as above, you can do this:value = sheet[1]['Start Date']
print(value)This also prints:1/1/18You may find it more intuitive to get the row first, like so:employee = sheet[1]
print(employee['Start Date']Even better, you can use header names for both the row and column:print(sheet['Sue Storm']['Start Date'])Looping over rowsIt’s easy to loop over rows:for row in sheet:
    print(row)This prints:First Name, Last name, start date
Sue, Storm, 1/1/18
Kitty, Pride, 2/5/18To print every cell in the spreadsheet:for row in sheet:
    for cell in row:
        print(cell)This prints:Full Name
Employee ID
Start Date
Sue
Storm
1/1/18
Kitty
Pride
2/5/18Looping over columnsYou can also loop over columns:for col in sheet.columns:
    print(col)
    print('----')This prints:Full Name
Sue Storm
Kitty Pride
----
Employee ID
1000
1001
----
Start Date
1/1/18
2/5/18What’s next?This first release provides some nice intuitive ways to access spreadsheet data.Future releases will add support for dealing with typical problems in spreadsheets that were created for humans to read rather than for computers to process.
Package: sada
SadaSada is a Django package designed to handle SadaBiz payment links.InstallationTo install the package, you can use pip:pip install sadaUsageAfter installing the package, you need to add it to your Django project.In yoursettings.pyfile, addsadato yourINSTALLED_APPS:INSTALLED_APPS=[...'sada',...]Then, include the sada URLconf in your projecturls.py:fromdjango.urlsimportincludeurlpatterns=[...path('sada/',include('sada.urls')),...]Now you can run Django's command to check for any database migrations:python manage.py makemigrations
python manage.py migrateModelsSada provides two main models:ProductandPrice.Productrepresents a product with fields like name, description, active, and metadata.Pricerepresents the pricing information related to a product.ViewsSada provides several views for managing products and prices:ProductListView: Displays a list of all products.ProductDetailView: Displays detailed information about a specific product.ProductCreateView: Allows you to create a new product.ProductUpdateView: Allows you to update an existing product.ProductDeleteView: Allows you to delete a product.PriceListView: Displays a list of all prices.PriceDetailView: Displays detailed information about a specific price.PriceCreateView: Allows you to create a new price.PriceUpdateView: Allows you to update an existing price.PriceDeleteView: Allows you to delete a price.These views are accessible via the URLs defined insada/urls.py.TemplatesSada provides several templates for displaying products and prices:sada/product/product_list.html: Displays a list of all products.sada/product/product_detail.html: Displays detailed information about a specific product.sada/product/product_form.html: Displays a form for creating or updating a product.sada/product/product_confirm_delete.html: Displays a confirmation prompt before deleting a product.sada/price/price_list.html: Displays a list of all prices.sada/price/price_detail.html: Displays detailed information about a specific price.sada/price/price_form.html: Displays a form for creating or updating a price.sada/price/price_confirm_delete.html: Displays a confirmation prompt before deleting a price.You can customize these templates to suit your needs.LicenseSada is licensed under the MIT License. For more information, see theLICENSEfile.