Saravanan666/pypi-org huggingface dataset:
Package: ym-impyla
# impylaPython client for HiveServer2 implementations (e.g., Impala, Hive) fordistributed query engines.For higher-level Impala functionality, including a Pandas-like interface overdistributed data sets, see the [Ibis project][ibis].### Features* HiveServer2 compliant; works with Impala and Hive, including nested data* Fully [DB API 2.0 (PEP 249)][pep249]-compliant Python client (similar tosqlite or MySQL clients) supporting Python 2.6+ and Python 3.3+.* Works with Kerberos, LDAP, SSL* [SQLAlchemy][sqlalchemy] connector* Converter to [pandas][pandas] `DataFrame`, allowing easy integration into thePython data stack (including [scikit-learn][sklearn] and[matplotlib][matplotlib]); but see the [Ibis project][ibis] for a richerexperience### DependenciesRequired:* Python 2.6+ or 3.3+* `six`, `bit_array`* `thrift` (on Python 2.x) or `thriftpy` (on Python 3.x)For Hive and/or Kerberos support:```pip install thrift_saslpip install sasl```Optional:* `pandas` for conversion to `DataFrame` objects; but see the [Ibis project][ibis] instead* `sqlalchemy` for the SQLAlchemy engine* `pytest` for running tests; `unittest2` for testing on Python 2.6### InstallationInstall the latest release (`0.13.1`) with `pip`:```bashpip install impyla```For the latest (dev) version, install directly from the repo:```bashpip install git+https://github.com/cloudera/impyla.git```or clone the repo:```bashgit clone https://github.com/cloudera/impyla.gitcd impylapython setup.py install```#### Running the testsimpyla uses the [pytest][pytest] toolchain, and depends on the followingenvironment variables:```bashexport IMPYLA_TEST_HOST=your.impalad.comexport IMPYLA_TEST_PORT=21050export IMPYLA_TEST_AUTH_MECH=NOSASL```To run the maximal set of tests, run```bashcd path/to/impylapy.test --connect impyla```Leave out the `--connect` option to skip tests for DB API compliance.### UsageImpyla implements the [Python DB API v2.0 (PEP 249)][pep249] database interface(refer to it for API details):```pythonfrom impala.dbapi import connectconn = connect(host='my.host.com', port=21050)cursor = conn.cursor()cursor.execute('SELECT * FROM mytable LIMIT 100')print cursor.description  # prints the result set's schemaresults = cursor.fetchall()```The `Cursor` object also exposes the iterator interface, which is buffered(controlled by `cursor.arraysize`):```pythoncursor.execute('SELECT * FROM mytable LIMIT 100')for row in cursor:process(row)```You can also get back a pandas DataFrame object```pythonfrom impala.util import as_pandasdf = as_pandas(cur)# carry df through scikit-learn, for example```[pep249]: http://legacy.python.org/dev/peps/pep-0249/[pandas]: http://pandas.pydata.org/[sklearn]: http://scikit-learn.org/[matplotlib]: http://matplotlib.org/[madlib]: http://madlib.net/[madlibport]: https://github.com/bitfort/madlibport[numba]: http://numba.pydata.org/[llvm]: http://llvm.org/[pytest]: http://pytest.org/latest/[sqlalchemy]: http://www.sqlalchemy.org/[ibis]: http://www.ibis-project.org/[python-sasl-cython]: https://github.com/laserson/python-sasl/tree/cython/sasl
Package: yml2cli
# yml2cli[![Lint](https://github.com/krishnamiriyala/yml2cli/actions/workflows/pylint.yml/badge.svg)](https://github.com/krishnamiriyala/yml2cli/actions/workflows/pylint.yml)
[![Publish](https://github.com/krishnamiriyala/yml2cli/actions/workflows/python-publish.yml/badge.svg)](https://github.com/krishnamiriyala/yml2cli/actions/workflows/python-publish.yml)Converts yaml configuration files to cli params
Package: yml2json
Converts YAML input to JSON output. Relies onPyYaml, which supportsYAML
1.0and1.1, but not1.2.yml2jsonhas been tested on Python 2.7.11 and Python 3.5.1. YMMV.Examplesyml2jsonsample.ymlyml2jsonsample.yml--prettyyml2jsonsample.yml--outputsample.jsonyml2jsonsample.yml--outputsample.json--prettycatsample.yml|yml2jsoncatsample.yml|yml2json--prettycatsample.yml|yml2json--outputsample.jsoncatsample.yml|yml2json--outputsample.json--prettyInstallationUsingPip:pipinstallyml2jsonDevelopingFirst, installVirtualEnv.pipinstall--upgradevirtualenvNext, activate your virtual environment and install the dependencies.virtualenvvendor&&\sourcevendor/bin/activate&&\pipinstall-rrequirements.txt&&\pipinstall-rrequirements2.txtContributingHere’s the process for contributing:Fork yml2json to your GitHub account.Clone your GitHub copy of the repository into your local workspace.Write code, fix bugs, and add tests with 100% code coverage.Commit your changes to your local workspace and push them up to your
GitHub copy.You submit a GitHub pull request with a description of what the
change is.The contribution is reviewed. Maybe there will be some banter
back-and-forth in the comments.If all goes well, your pull request will be accepted and your changes
are merged in.Authors, Copyright & LicensingCopyright (c) 2016Ryan Parman.See also the list ofcontributorswho
participated in this project.Licensed for use under the terms of theMITlicense.
Package: ymlconf
yamlconfA simple python library use to load/dump config from yaml file.Generated by cookiecutter-rrpylibrary.Free software: MIT licenseDocumentationFeaturesTODOadd documentsCreditsThis package created by Cookiecutter with theHuangKaiHuan/cookiecutter-rrpylibraryproject template.Cookiecutter:https://github.com/audreyr/cookiecutterHuangKaiHuan/cookiecutter-rrpylibrary:https://github.com/HuangKaiHuan/cookiecutter-rrpylibraryChangelog2.0.0 (2021-06-20)BREAKING CHANGE- Rename method, catch exceptions when check and format value. [qin_hw]


1.0.1 (2021-06-20)
------------------

Bug Fixes
~~~~~~~~~
- Raise exception when set init value to none. [qin_hw]


1.0.0 (2021-06-19)
------------------

Features
~~~~~~~~
- Support multi-level nested key. [qin_hw]
- Remove api of attribute. [qin_hw]
- Add class attribute. [qin_hw]
- Implement yaml config manager. [qin_hw]

BREAKING CHANGEUpdate project url. [qin_hw]Rename package name from yamlconf --> ymlconf. [qin_hw]Rename package name from yamlconf --> ymlconf. [qin_hw]0.1.0 (2021-06-19)First commit.
Package: ymlf
Command-line tool that parsesYAMLfromstdinand writes the parsedYAML, or a subset thereof, tostdout.Please take a look at the documentation for how to install and useymlf:InstallationUsageIf you find bugs or need help then feel free to submit anIssue. If you want
to get involved head over to theGitHub pageto get the source code and
submit aPull requestwith your changes.
Package: ymlref
ymlrefis a library that allows you to load Yaml documents and resolve JSON-pointer references
inside them.Usage exampleimportymlrefDOCUMENT="""

authors:
  shakespear:
    first_name: William
    last_name: Shakespear
  dostoevsky:
    first_name: Fyodor
    last_name: Dostoevsky
books:
   - title: Makbet
     author:
       $ref: "#/authors/shakespear"
   - title: Crime and punishment
     author:
       $ref: "#/authors/dostoevsky"
"""doc=ymlref.loads(DOCUMENT)print('Books in document:\n')forbookindoc['books']:print(book['title'])print('Author: '+book['author']['first_name']+' '+book['author']['last_name'])print('---')Exposed APIymlrefprovides two functions:loadandloads. The first one loads document from file-like object, while the second one loads document fromstrobject.
Package: ymm
ymmYAML Mimics MakefilesYMM is one of the first examples of YAAPL: YAML as a Programming LanguageYMM uses standard YAML files with a few special conventions to function as a task runner.
In addition to simply creating lists and dictionaries, YMM can execute commands (and thus return values) based on the 'control character' at the beginning of a line.Getting Started$ pip install ymm
$ ymm --versionData StructuresYMM files have a top-level dictionary, whose keys are called "actions."
Type$ ymm <action>to execute and return the results of that action, which can be a dictionary or a list.
Dictionaries will set the results of that action to the key, which can be accessed as a{variable}in future actions.There are also two special actions:initwhich is always executed before any other actiondefaultwhich is executed if no action is specifiedScopeVariables cascade via the following rulesBuilt-in Actions (seesrc/ymm/builtin.yml)Environment variables (which are loaded at runtime)initprior actionscurrent actionControl Characters'.' run this YMM action'$' run this in the shell'+' execute this Python string (use '"""' for docstrings)'^' pipe the prior result into this shell command'~' pipe the prior result into this jquery pathMotivationBecause I love YAML, and missrake.
I tried PyPyr, which is brilliant but painfully verbose.
I was going to write a preprocessor, then realized it was simpler to just execute the commands myself.
Package: ymmetric-secret-share
symmetric-secret-sharePython CLI to share secret files via github with symmetric encryption ed25519.IMPORTANT: The secret files should be git-ignored to avoid oblivious leakage.Temporarily supports only text files (only tested with.env).Best used to store/share secrets and configurations.Key should be a 32-byte long string, meanly, 32 ASCII, 16 two-byte UTF-8 or 8 four-byte UTF-8 characters.(FAQ) If you share with GitHub (like the example), please notice that there's a 5 minutes cool-down on refreshing.DetailHowever, GitHub Gist seems doesn't have this cool-down limitation.UseInstall CLI:pip3 install symmetric-secret-share.Check theTutorial Chapterandsss --help.Recommended: set up a global key chain withsss key, or you would have to input a key every time.Get a config like$REPO_ROOT/tests/injection/sss.json. The JSON-schema in$schemaof this file will help you write the config file.injectGet a config file like$REPO_ROOT/tests/injection/sss.json.Run CLIsssinject[-kTEXT]CONFIG_PATHshareRun CLIsssshare[-kTEXT]CONFIG_PATHkeyRun CLIssskey[-c/f/g]# -g: generate one key, -c: clear key chain, -f: forceUpload the generated file to GitHub (or other platforms).Update the config file if needed.SecurityThere are256**32==1,15e+77keys of 32 of ASCII (one-byte utf-8 string).To generate ASCII key, you can usesss key --generate.To generate two-byte utf-8 string, a possibility is to useonlineutf8toolsContributeCreated forArtcoin-Network, modifying a private repoArtcoin-Network/artificial-dev-config.To contribute, please fork the repo and runpoetry install.Read more inCONTRIBUTE.mdTutorialIn this tutorial, all commands are assumed to be run under the$REPO_ROOT. We are going to use these concepts and variables:key chain: A file to share key, initialized withsss key.key:This key contains 32 characters..URL:https://raw.githubusercontent.com/PabloLION/symmetric-secret-share/main/tests/example.encrypted.We are going to play with the foldertest/injection, with thesss.jsonfile inside it. To share your own file, a new config file should be created.Setup a local key chainssskey# create/editssskey-c# clear all keysload files from URLThese code will generate atest/injection/target.envliketest/example.envsssinject./tests/injection/sss.json# use key from initial key chainsssinject-k"This key contains 32 characters."./tests/injection/sss.json
sssinject./tests/injection/sss.json-k"I'm a string with 32 characters."# failshare filesNeed to upload manually #TODO
These code will generate atest/injection/target.encryptedsssshare./tests/injection/sss.json# use key from initial key chainsssshare-k"This key contains 32 characters."./tests/injection/sss.json
Package: ymmsl
yMMSL Python bindingsPython bindings for the YAML version of the Multiscale Modeling and Simulation
Language.This package provides a Python library for reading and writing yMMSL files.
These files describe multiscale models and/or parameter settings for
running such a model. This library is based onYAtiML, a Python library for making libraries for
YAML-based file formats like this one.DocumentationThis is an ordinary Python library that can be installed via pip. It requires
Python 3.7 or higher. More information is available in theonline
documentation for ymmsl-python.DevelopmentThis library is developed inits public GitHub repository. If you run into a problem or
something is unclear, please file an issue.Legalymmsl_python is Copyright 2018-2023 Netherlands eScience Center and University
of Amsterdam, and Copyright 2022-2023 ITER Organisation. Licensed under the
Apache 2.0 license.
Package: ymmsl-dot
yMMSL plotting toolA tool to visualise yMMSL files usinggraphvizandymmsl-python.ExamplesTwo examples are shown here, a simple onemacro_micro, and a more complex onecomplex.DefaultExplicit ports, simple arrows, legend (-p -s -l)Usage (ymmsl graph --help)Usage: ymmsl graph [OPTIONS] YMMSL_FILES...

  Plot a graphical representation of the passed yMMSL files.

  To help develop or understand about a coupled simulation it may be useful to
  view a graphical representation.

  If multiple yMMSL files are given, then they will be combined left to right,
  i.e. if there are conflicting declarations, the one from the file last given
  is used.

  Result:

    A graph is displayed or saved to disk, containing all the defined
    components and the connections between them.

  Examples:

    ymmsl graph simulation.ymmsl

Options:
  -o, --out FILE                  Output file (default ./output.format)
  -f, --fmt [canon|cmap|cmapx|cmapx_np|dia|dot|fig|gd|gd2|gif|hpgl|imap|imap_np|ismap|jpe|jpeg|jpg|mif|mp|pcl|pdf|pic|plain|plain-ext|png|ps|ps2|svg|svgz|vml|vmlz|vrml|vtx|wbmp|xdot|xlib]
                                  Set output format (default svg).
  -w, --viewer TEXT               Open with specified viewer (try xdg-open)
  -v, --verbose                   Show more info (prints the generated dot
                                  syntax)
  -p, --ports                     Explicitly draw component ports.
  -l, --legend                    Show a legend (only with --ports).
  -s, --simple-edges              Only indicate conduit direction, not port
                                  types.
  --portlabels                    Never simplify matching port labels along an
                                  edge.
  -h, --hide-edge-labels          Hide edge labels (as long as the input and
                                  output port match).
  --help                          Show this message and exit.Issues and DiscussionsAs usual for any GitHub-based project, raise anissueif you find any
bug or want to suggest an improvement, or open adiscussionif
you want to discuss.Generated documentationThere is adocs/folder containing sphinx documentation, but this has not yet been filled completely.
Build it withsphinx-builddocshtml
Package: ymodem
Fork of the YMODEM project byalexwoo1900Now available on PyPi, also now it can be used as cli tool for Serial ports
The YMODEM project is based on XMODEM implementation written by tehmaze.
It is also compatible with XMODEM mode.README:ENGLISH|简体中文InstallationUsageCLI TOOLSending a batch of filesReceive a fileDemoInteract with SecureCRTQuick startAPICreate MODEM ObjectSend filesReceive filesDebugChangelogLicenseInstallationpipinstallymodemUsageCLI TOOL# To get helpymodem-h# orpython-mymodem-hSending a batch of filesymodemsend./file.bin./file2.bin-pCOM4-b115200# orpython-mymodemsend./file.bin./file2.bin-pCOM4-b115200Receive a fileymodemrecv./-pCOM4-b115200# orpython-mymodemrecv./-pCOM4-b115200DemoTest the sending and receiving functionsIf you want to run the test sample, please do the following:use virtual serial port tool to generate COM1 and COM2 that can communicaterun the FileReceiver.py and FileSender.py on the command lineThe specific transmission process is shown in the following figure:Interact with SecureCRTInteract with SecureCRT as senderInteract with SecureCRT as FinderQuick startfromymodem.SocketimportModemSocket# define readdefread(size,timeout=3):# implementation# define writedefwrite(data,timeout=3):# implementation# create socketcli=ModemSocket(read,write)# send multi filescli.send([file_path1,file_path2,file_path3...])# receive multi filescli.recv(folder_path)For more detailed usage, please refer to the demo/FileReceiver.py and demo/FileSender.py files.APICreate MODEM Objectdef__init__(self,read:Callable[[int,Optional[float]],Any],write:Callable[[Union[bytes,bytearray],Optional[float]],Any],protocol_type:int=ProtocolType.YMODEM,protocol_type_options:List[str]=[],packet_size:int=1024,style_id:int=_psm.get_available_styles()[0]):protocol_type: Protocol type, see Protocol.pyprotocol_type_options: such as g representing the YMODEM-G in the YMODEM protocol.packet_size: The size of a single packet, 128/1024 bytes, may be adjusted depending on the protocol stylestyle_id: Protocol style, different styles have different support for functional featuresSend filesdefsend(self,paths:List[str],callback:Optional[Callable[[int,str,int,int],None]]=None)->bool:callback: callback function. see below.ParameterDescriptiontask indexindex of current tasktask (file) namename of the filetotal packetsnumber of packets plan to sendsuccess packetsnumber of packets successfully sentReceive filesdefrecv(self,path:str,callback:Optional[Callable[[int,str,int,int],None]]=None)->bool:callback: callback function. Same as the callback of send().DebugIf you want to output debugging information, set the log level to DEBUG.logging.basicConfig(level=logging.DEBUG,format='%(message)s')Changelogv1.5.1b1 (2024/02/03)Added additional options to cli toolv1.5.1b0 (2024/02/03)Added cli tool to iteract with YMODEM via Serial busFix of transaction end logic in send()v1.5 (2023/05/20 11:00 +00:00)Rewritten send() and recv()Support YMODEM-G.
The success rate of YMODEM-G based on pyserial depends on the user's OS, and after testing, the success rate is very low without any delay.LicenseMIT License
Package: ynab-csv-converter
YNAB CSV ConverterConverts bank record CSV files in various formats to YNAB CSV format.Any previously converted files will be looked up so that a converted
export only contains unique transactions with respect to already
converted exports.Installationpip3installhttps://github.com/andsens/ynab-csv-converter/archive/master.tar.gzUsageUsage:ynab-csv-converter [options] FORMULA INFILE...Formulaformat: sparekassen
outpath: /home/andsens/converted
archivepath: /home/andsens/archive
outprefix: sparekassen-euro
factor: 7.45All settings exceptfactorare mandatory.
The above formula looks for converted files in/home/andsens/converted/sparekassen-euro-[daterange]and removes transactions from the inputfiles that already exist in those converted
files.
All amounts are multiplied by 7.45 (EUR -> DKK).
Once converted from "sparekassen" format to "ynab" format,
the transactions are written to/home/andsens/converted/sparekassen-euro-[daterange],
while the original file is archived at/home/andsens/archive/sparekassen-euro-[daterange].Thedaterangecorresponds to the dates of the latest and earliest transaction
(in that order, so that newest exports are sorted last).Supported formatsDanskeBank (key: danskebank)Sparekassen (key: sparekassen)Lån & Spar (key: laanspar)Nordnet (key: nordnet)HypoVereinsbank (key: hypovereinsbank)SaxoTraderGo Account Statement (key: saxotradergo)
Package: ynab-import
YNAB - You Need a BudgetBudgeting Tool helps you plan and manage your personal budget.
In Ynab you have budgets, each budget has one or more accounts with transactions.Run testspython -m pytestHow to runClone projectCreate .env file in project rootSOURCE=revolutREAD_FROM=../statement.csvWRITE_TO=apiYNAB_API_KEY=YNAB_BUDGET_ID=# ISIC#YNAB_ACCOUNT_ID=739410aa-0ef1-4b3e-a488-4ffe5ca3209a# CheckingYNAB_ACCOUNT_ID=# Saving#YNAB_ACCOUNT_ID=Runmain.pyDeveloper APIhttps://api.youneedabudget.com/#User APIynab-import --s swedbank -r api -w api
 ynab-import --s swedbank -r file.csv -w file.csv
 ynab-import --s swedbank -r file.csv -w apiSome default/extra configurations requiredread-from fileINPUT_FILE_PATH [default (~/{bank}.csv) home@Linux] (actual full file path required)read-from apiappropriate bank credentials and setup requiredRaise Not Supportedwrite to fileOUTPUT_FILE_PATH [default (~/{bank}-ynab-{date-time}.csv) home@Linux] (add file name only if not specified)write to apiYNAB_API_KEYYNAB_BUDGET_IDYNAB_API_BASE_URL="https://api.youneedabudget.com/v1/"User WikiYnab####### Import ManuallyIts posisble to import Csv File manually####### Import Using Ynab API
To set up this integration you need to createPersonal Access Token.Go tohttps://app.youneedabudget.com/settings/developerand clickNew Token
Package: ynabintegrationscli
A tool to  upload transactions from an abn amro account and credit card to ynab provided a configuration file and valid session cookies for an abn amro connectionDocumentation:https://ynabintegrationscli.readthedocs.org/en/latestDevelopment WorkflowThe workflow supports the following stepslinttestbuilddocumentuploadgraphThese actions are supported out of the box by the corresponding scripts under _CI/scripts directory with sane defaults based on best practices.
Sourcing setup_aliases.ps1 for windows powershell or setup_aliases.sh in bash on Mac or Linux will provide with handy aliases for the shell of all those commands prepended with an underscore.The bootstrap script creates a .venv directory inside the project directory hosting the virtual environment. It uses pipenv for that.
It is called by all other scripts before they do anything. So one could simple start by calling _lint and that would set up everything before it tried to actually lint the projectOnce the code is ready to be delivered the _tag script should be called accepting one of three arguments, patch, minor, major following the semantic versioning scheme.
So for the initial delivery one would call$ _tag –minorwhich would bump the version of the project to 0.1.0 tag it in git and do a push and also ask for the change and automagically update HISTORY.rst with the version and the change provided.So the full workflow after git is initialized is:repeat as necessary (of course it could be test - code - lint :) )codelinttestcommit and pushdevelop more through the code-lint-test cycletag (with the appropriate argument)buildupload (if you want to host your package in pypi)document (of course this could be run at any point)Important InformationThis template is based on pipenv. In order to be compatible with requirements.txt so the actual created package can be used by any part of the existing python ecosystem some hacks were needed.
So when building a package out of thisdo notsimple call$ python setup.py sdist bdist_eggas this will produce an unusable artifact with files missing.Instead use the provided build and upload scripts that create all the necessary files in the artifact.Project FeaturesTODOHistory0.0.1 (10-10-2019)First code creation0.1.0 (10-10-2019)initial version with no schema validation and no error checking0.1.1 (09-12-2019)Bumped dependency0.1.2 (10-12-2019)Added some logging and bumped dependencies.0.1.3 (26-10-2020)Fixed a bug with a new header cookie implemented by ICS.0.1.4 (07-07-2021)Bumped dependencies.0.1.5 (07-07-2021)Added pipeline and bumped dependencies.