Saravanan666/pypi-org huggingface dataset:
Package: sanzang-lib
The Sanzang Library is a Python 3 module for translating from Chinese,
Japanese, and Korean (the CJK languages). The Sanzang Library implements the
main functions of the programs contained in Sanzang Utils.InstallationTo install this module, you can use pip or just the normal setup script:# python3 setup.py installUsage and documentationTo begin using the module, you can just import it:import sanzangTo read about which functions are available and their usage, you could do:>>> import sanzang
>>> help(sanzang)Project linksGitHub: sanzang-lib<https://github.com/yaoguai/sanzang-lib>GitHub: sanzang-utils<https://github.com/yaoguai/sanzang-utils>Sanzang Homepage<http://lapislazulitexts.com/sanzang>Sanzang: Introduction<http://lapislazulitexts.com/articles/sanzang_intro>Sanzang Utils Tutorial<http://lapislazulitexts.com/articles/szu_tutorial>
Package: sanzang-utils
Website:<http://lapislazulitexts.com/sanzang>GitHub:<https://github.com/yaoguai/sanzang-utils>Sanzang is a compact and simple cross-platform machine translation system. This
system is especially useful for translating from CJK languages (Chinese,
Japanese, and Korean). Unlike most other machine translation systems, Sanzang
is useful even for ancient and otherwise difficult texts.Due to its origins in translating texts from the Chinese Buddhist canon, this
translation system is called Sanzang (三藏), a literal translation of the
Sanskrit word “Tripitaka,” which is a general term for the Buddhist canon. As
demonstrated by the Sanzang translator itself:$ echo 三藏 | szu-t sztab
1.1|三藏
1.2| sānzàng
1.3| tripiṭakaAnyone can learn how to use Sanzang Utils, and use these programs to read and
analyze texts. Unlike other systems, Sanzang is small and approachable. You can
easily develop your own translation rules, and these rules are just stored in a
text file and applied at runtime.ComponentsSanzang Utils includes the following programs:szu-ed (1) - Command-based translation table editorszu-r (1) - Preprocessor for reformatting CJK textszu-t (1) - The main translation programszu-ss (1) - Case-sensitive string substitution toolThese are all written in Python 3 and available under the MIT License.InstallationTo run these programs, Python 3.x is required. Installation on a Unix-like
platform is advised, but Windows is possible too. If you are using Windows,
then Cygwin is the best environment for these programs. To install Sanzang
Utils, you can callpip3to download and install it:# pip3 install sanzang-utilsIf you do not havepip3installed on your system, you can download the
Sanzang Utils software manually and then install it using the old method:# python3 setup.py installDocumentationAfter installing Sanzang Utils, you may want to read the introduction and the
tutorial. The introduction introduces you to the core concepts and rationale
behind the system. The tutorial gives practical instruction on exactly how to
use each component, how they relate to one another, and how you can develop
your own translation tables.Sanzang Introduction:<http://lapislazulitexts.com/articles/sanzang_intro>Sanzang Utils Tutorial:<http://lapislazulitexts.com/articles/szu_tutorial>In addition to the introduction and tutorial, each program also includes a
traditional Unix manual page that can be used as a reference.UpdatesTo find out what new fixes and features are available with each new version,
you can check the NEWS file, which lists all notable changes according to the
version number and date.Versions of Sanzang Utils follow the scheme N.N.N, indicating the major
version, minor version, and the patch number. The patch number is incremented
for sets of small updates or bug fixes, the minor number indicates some new
feature or new behavior, and the major number indicates a big change or new and
incompatible behavior.
Package: saoovqe
SA-OO-VQESA-OO-VQE method implemented via Qiskit library.The purpose of this README is only to get you going quickly. If you need more examples and in-depth explanations in the form of both user and programmer documentation, have a look at our official documentation
websitesa-oo-vqe-qiskit.rtfd.io.Installation from PyPiFirst of all, installPsi4,pandocandpippackages, if you haven't already. With these available, all the other
dependencies will be taken care of bypip.Now you can either usepipto install SA-OO-VQE from PyPi like$ python3 -m pip install saoovqeManual installationIf you don't want to, or you can't usepipfor installation of SA-OO-VQE, you can do it also manually.Cloning the repository$ git clone git@gitlab.com:MartinBeseda/sa-oo-vqe-qiskit.gitInstallation via Conda$ conda env create -f environment.yml
$ conda init bash
$ source ~/.bashrc
$ conda activate saoovqe-env
$ python3 -m pip install .Installation without CondaIn this case, you need to installPsi4,pandocandpipmanually, if you haven't already.
Subsequently, you'll take care of the remaining dependencies via the following command.$ python3 -m pip install qiskit>=0.43.0 qiskit-nature>=0.6.2 "numpy>=1.22.0, <1.24.0" deprecated>=1.2.14 mendeleev>=0.13.1 scipy>=1.10.1 sympy>=1.11.1 setuptools>=67.8.0 lxml>=4.9.2 nlopt ipython jupyter pygments scikit-learn>=1.2.2 icecream>=2.1.3 pytest>=7.3.1 --upgradeAnd now the only remaining thing is to go into a SA-OO-VQE root folder and installing the module itself.$ python3 -m pip install .Testing the installationThat's all! Now you should be able to test your SA-OO-VQE like this.$ python3

>>> import saoovqe
>>> saoovqe.__version__
Package: sap
Simple Attribute Profiles (SAP)SAP is a Python package to easily compute morphological attribute
profiles (AP) of images.InstallationpipinstallsapDocumentationDocumentation is available onhttps://python-sap.rtfd.io.NotebooksTODO:Code examplesimportsapimportnumpyasnpimportmatplotlib.pyplotaspltimage=np.random.random((512,512))t=sap.MaxTree(image)area=t.get_attribute('area')filtered_image=t.reconstruct(area<100)plt.imshow(filtered_image)plt.show()Develop status
Package: sap2000
Python app to aid in SAP analysis.View Demo·Documentation·Report Bug·Request FeatureTable of Contents1. About the Project1.1. Features2. Getting Started2.1. Prerequisites2.2. Dependencies2.3. Installation3. Usage3.1. Interact with database tables3.2. Units4. Roadmap5. License6. Contact7. Acknowledgements1. About the ProjectPython wrapper for SAP2000 application1.1. FeaturesModal AnalysisCan run modal analysis to capture the required modal participation, per CSAResponse SpectrumCan setup, solve and run response spectrum analysis on SAPTemplate SetupCan quickly and consistently deploy Template SAP settings to any open SAP model.2. Getting Started2.1. PrerequisitesRequiresPython 3.10+2.2. DependenciesCreate the virutual environment and install dependenciespython-mvenv.venv.venv\Scripts\activate.batpipinstallflit2.3. InstallationInstallsap2000and dependencies withflitflitinstall3. UsageEnsure the SAP file you would like to manipulate is already open.A script to run analysis and save the model to a new location.importsap2000sap=sap2000.attach()sap.analyze(all_cases=True)sap.save_model(savepath=r"\path\to\save\file.sdb")3.1. Interact with database tablesList available tablessap.Table.availableGet Table valuessap.Table.get("Project Information")Show table information and column descriptionssap.Table.col_description('Area Loads - Uniform')3.2. UnitsYou can use this module to get the current active units in the model or set a specific unit system.Get UnitsReturns a tuple offorallpeopleinstance for the force and distance, and a string for the temperature (C/F). The force and distance can be directly multiplied with the numerical values to get consistent units and ease of calculation or presentation.$sap.Units.get()(1.000kN,1.000m,'C')Set UnitsNumberForceDistanceTemperature1lbfinF2lbfftF3kipinF4kipftF5kNmmC6kNmC7kgfmmC8kgfmC9NmmC10NmC11TonmmC12TonmC13kNcmC14kgfcmC15NcmC16ToncmCsap.Units.set(5)4. RoadmapBeam DesignGenerate S-Concrete files with correct loadcases for any/all beams in project.Get beam/column design summary.5. LicenseDistributed under the no License. See LICENSE.txt for more information.6. ContactArun Kishore -@rpakishoreProject Link:https://github.com/rpakishore/sap-analysis7. AcknowledgementsUse this section to mention useful resources and libraries that you have used in your projects.Awesome README TemplateBanner MakerShields.ioCarbonforallpeople
Package: sap2012
sap2012SAP2012 energy calculation method in Python.IntroductionSAP2012 is the Standard Assessment Procedure 2012, the UK Government's energy calculation method for the building regulation compliance for new dwellings.SAP2012 is developed and published by the Building Research Establishment:https://www.bregroup.com/sap/standard-assessment-procedure-sap-2012/.This Python package contains the calculation methods and data in the SAP2012 methodology. It allows the user to specify the inputs needed for a SAP calculation and then to run a SAP calculation based on these inputs.DocumentationFull documentation is available on ReadTheDocs here:https://sap2012.readthedocs.io/en/latest/InstallationAvailable on PyPi. Download using the commandpip install sap2012.If using the Anaconda distribution, this command can be run using the Anaconda prompt.ApproachThe package is designed to represent the SAP calculation method as simply as possible, to allow for flexibility and customisation.Each section of the SAP2012 calculation method is a separate Python function which takes the input data as a series of arguments and returns the calculation results. For example, the method for calculating ventilation rates is given in theventilation_rates.pymodule.A complete SAP calculation is run using thecalculate_worksheetfunction.Quick ExampleThis example runs a complete SAP2012 calculation using the inputs as stored in the'inputs.json'file. The example prints the model outputs of the 'SAP_rating' section of the calculations.fromsap2012importcalculate_worksheetimportjsonwithopen('inputs.json')asf:inputs=json.load(f)result=calculate_worksheet(inputs)print(result['SAP_rating']){'energy_cost_factor': 1.7754795340546146, 'SAP_rating_value': 75.23206049993813}Issues & feature requests?Please raise them on theGitHub Issues page.ContributionsAll contributions welcome. Please send yourpull requests.Contactshttps://www.lboro.ac.uk/departments/abce/staff/steven-firth/
Package: sapapj-langchain-proxy
SAP Langchain Proxy to work with AI models at SAPOpenAI SAP BTP ProxyThe OpenAI SAP BTP Proxy is a Python library that provides a proxy to connect to OpenAI services through SAP Business Technology Platform (BTP) with OAuth2 authentication. It abstracts interactions with various OpenAI models for tasks such as generating completions, working with embeddings, and using chat-based language models.FeaturesCompletions: Interact with OpenAI models for text completions.Embeddings: Work with text embeddings using OpenAI models.Chat Completions: Utilize chat-based language models for conversational applications.UsageTo use the library, you need to provide the necessary configuration for OAuth2 authentication and OpenAI endpoints. Below is an example of how to set up and use the library:# Configure OAuth2 and OpenAI endpointsoauth_config={"openai_api_client_id":"YOUR_CLIENT_ID","openai_api_client_secret":"YOUR_CLIENT_SECRET","openai_api_tokenurl":"OPENAI_TOKEN_URL","openai_api_url":"OPENAI_API_URL"}It's recommended, though to provide the parameters as environment variablesOPENAI_CLIENTID
OPENAI_CLIENTSECRET
OPENAI_APIURL
OPENAI_TOKENURLExample codeUse below examples for LLM or Chat models in langchainfromsaplangchainproxy.chatimportSAPChatOpenAIfromlangchain.chainsimportConversationChainfromlangchain.memoryimportConversationBufferMemorychat=SAPChatOpenAI(model='gpt-4',temperature=0.0)conversation=ConversationChain(llm=chat,memory=ConversationBufferMemory())test_string="Hello I'm an AI."test_reply=conversation.run(f"Just answer with '{test_string}'. Nothing else.")print(f"AI response is:{test_reply}")fromsaplangchainproxy.llmimportSAPAzureOpenAIllm=SAPAzureOpenAI(temperature=0.0)test_string="Hello I'm an AI."test_reply=llm(f"Just answer with '{test_string}'. Nothing else.")print(f"AI response is:{test_reply}")LicenseThis library is licensed under the MIT License. See the LICENSE file for details.
Package: sapass
sapassFirst version of password generator for python projectsEasy to install and easier to useUse python version bigger than 2.7For generate new password: :-1:fromsapassimportsapassprint(sapass.generator.get_new_pass(15))you can use below parameters for class inputslength
Default length for password defined 8 character, by change this value you get new pass with another size.passTypepassType={'mix',# alphabet + numbers + symbols'alphabet',# only alphabet'number',# only numbers}includeSymbol
Boolean parameter: if define 'True' generated password contains special characters such as {!@#$%^&*()}includeUppercaseCharacters
Boolean parameter: if define 'True' generated password contains uppercase characters such as {ABCDEFGHIJ...}For convert password: :new: Added In version 2.0You must useconvertorclass```python
from sapass import convertor
```Hash password withhash_passwordand validate ithash_password_validatemethod:new_pwd="testPWd"hashed_password=convertor.convertor.hash_password(new_pwd)print(hashed_password)ifconvertor.convertor.hash_password_validate(hashed_password,new_pwd):print('You entered the right password')else:print('I am sorry but the password does not match')To verify the strength of password usingpassword_strong_check:print(convertor.password_strong_check("hello"))print(convertor.convertor.password_strong_check("hello_W0rld"))Output:
> {'symbol_error': True, 'digit_error': True, 'lowercase_error': False, 'uppercase_error': True, 'length_error': True, 'password_ok': False}

> {'symbol_error': False, 'digit_error': False, 'lowercase_error': False, 'uppercase_error': False, 'length_error': False, 'password_ok': True}
Package: sa-pathfinding
A python utility to execute single-agent searches on environmentsFree software: MIT licenseInstallationpip install sa-pathfindingYou can also install the in-development version with:pip install https://github.com/nathansamsel/python-sa-pathfinding/archive/master.zipDocumentationhttps://python-sa-pathfinding.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1 (2020-05-14)First release on PyPI.
Package: sapcloudconnectorpythonsocket
sapcloudconnectorpythonsocketPython Socket to connect to the SAP Cloud Connector via Connectivity ServiceThe SAP BTP Connectivity Proxy allows to connect to on-prem systems. It can act as a SOCKS5 Proxy to establish TCP connections.
Due to its custom authentication scheme one can not use standard SOCKS5 client libaries. For details on how to authenticate against the Connectivity Proxy see the official Documentation.https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/using-tcp-protocol-for-cloud-applications##Sample Usage:fromsapcloudconnectorpythonsocketimportCloudConnectorSocketcc_socket=CloudConnectorSocket()cc_socket.connect(dest_host="virtualhost",dest_port=3333,proxy_host="connectivity-proxy",proxy_port=20003,token="<token>",location_id="CLOUD_CONNECTOR_LOCATION_ID")Opens a socket in python using the SAP Cloud Connector as proxy. The standard socket object from python can be used in a various applications. Often times useful in connectig to TCP based protocols using python packages. The location_id is optional.
The destination host and port are the virtualhost and virtualport configured in the Cloud Connector configuration.
The proxy_host and the proxy_port are the host and port of the BTP Cloud Foundry Connectivity Proxy. The token is the authentication token to the Connectivity Proxy. They can be obtained from the Credentials of an BTP Connectivity Service instance.To open a TCP based connection the proxy_port needs to be the port to the socks5 proxy. This is usually 20004 in the connectivity service.
Package: sap-commerce-backoffice-icons
SAP Commerce Cloud Backoffice icon converterSimple Tool to create explorer tree icons for the SAP Commerce Backoffice
interface from simple icon files.Why is this needed?The SAP Commerce Cloud Backoffice interface requires a special crafted sprite
image to show it as icon in the explorer tree. This tool helps creating this
sprites based on a simple icon file.How to use it?The simplest case is to convert a single icon. For this you must have an input
icon meeting the following criterias:Size is 16x16 pixels (given by SAP Commerce)Transparent background (otherwise it will not really work)File format should be "png"Run the following commands to create the sprite (replace the example icon with
your own):$pipinstallsap-commerce-backoffice-icons
$backofficeIconConverterexampleIcons/star.png
ProcessiconexampleIcons/star.png...
exampleIcons/star.png=>exampleIcons/backoffice-star.pngThat's it! Now you can use this icon sprite in your custom Backoffice extension
as icon for your custom types. For more help on how to do this, seeTutorial.You can also convert multiple icons:$ backofficeIconConverter ~/FolderWithSomeIcons/* --output convertedInstall development environmentTo install the script for development or to run it directly from source, the following
steps are needed:Install Python >3.7Install Poetry (seehttps://python-poetry.org/docs/)Make the project ready to be used:gitclonehttps://github.com/dev-jan/sap-commerce-backoffice-icons.gitcdsap-commerce-backoffice-icons
poetryinstallRun the script via Poetry virtual env:poetryrunbackofficeIconConverterexampleIcons/star.png
Package: sapcx
SAPCX (SAP CX CLI utility)IntroductionWhy I built this ?? AS a SAP CX (Hybris) developer I found myself using HAC (Hybris adminstration console) a lot, and it's time consuming to open the browser, select each tab, then run simple groovy or some flexible search queries, or whatever is the task to be done.And since I'm always on my terminal, I thought about looking for a cli for this, but unfortunately didn't find any, then I decided to build it myself for my specific needs,& I think this is it :sweat_smile:For whoever reading thisThis tools is not yet stable, and still in beta version, I'm still working on it while using it in work,please feel free to contribute, create some pull requests or open some issues for improvement, they are always welcomeGet startedPrerequisitesObviously you need a local or remote running Hybris server, and an account to access it, &Pythoninstalled on your machine.InstallationInstall CLI through pip:$ pip3 install --user --upgrade sapcxConfigure default server instance$sapconfigure
Profileidentifier(default):Profileusername(admin):Profilepassword(nimda):Profileserver(127.0.0.1):Profileport(9002):
Issecuredwithssl[Y/n]:Y
Profilewebroot(/):Usageusage: sap [-h] [-i IMPORT_IMPEX] [-e EXECUTE_GROOVY] [-q QUERY]
           [--profile PROFILE]
           {configure} ...

positional arguments:
  {configure}           Sub commands help
    configure           Configure different profiles for your servers

optional arguments:
  -h, --help            show this help message and exit

console:
  -i IMPORT_IMPEX, --import IMPORT_IMPEX
                        Impex file to import
  -e EXECUTE_GROOVY, --execute EXECUTE_GROOVY
                        Groovy script file to execute
  -q QUERY, --query QUERY
                        Run flexible search query

server:
  --profile PROFILEContributionPlease switch todevbranch since most of the work is done there, and there is a github action that automatically push the current vesion to Test PyPI.
Package: sapera
sapera: Python algorithm learning toolkit< Learn Algorithmns One Day at a Time >
 -------------------------------------
      \                    / \  //\
       \    |\___/|      /   \//  \\
            /0  0  \__  /    //  | \ \    
           /     /  \/_/    //   |  \  \  
           @_^_@'/   \/_   //    |   \   \ 
           //_^_/     \/_ //     |    \    \
        ( //) |        \///      |     \     \
      ( / /) _|_ /   )  //       |      \     _\
    ( // /) '/,_ _ _/  ( ; -.    |    _ _\.-~        .-~~~^-.
  (( / / )) ,-{        _      `-.|.-~-.           .~         `.
 (( // / ))  '/\      /                 ~-. _ .-~      .-~^-.  \
 (( /// ))      `.   {            }                   /      \  \
  (( / ))     .----~-.\        \-'                 .~         \  `. \^-.
             ///.----..>        \             _ -~             `.  ^-`  ^-_
               ///-._ _ _ _ _ _ _}^ - - - - ~                     ~-- ,.-~
                                                                  /.-~InstallationUse the package managerpipto installsapera.pipinstallsaperaUsagesaperacan be run as a command-line program, in your terminal run❯sapera

Usage:sapera<command>

Commands:run->Runsaperar->aliasforrunupdate->updatesaperau->aliasforupdateupdaterun->updatethedatabasethenrunur->aliasforupdaterunhelp->openshelph->aliasforhelp❯saperarun

Here'sanAlgorithmoftheDay
------------------------------
Name:BinaryTreeTraversals
AlgorithmType:Traversals
LinktotheSolution:https://github.com/TheAlgorithms/Python/blob/master/traversals/binary_tree_traversals.py❯saperaupdate

RunningScript...
..............................Done
AlreadyuptoDate!❯saperaupdaterun

RunningScript...
............................Done
AlreadyuptoDate!
Here'sanAlgorithmoftheDay
------------------------------
Name:HammingCode
AlgorithmType:Hashes
LinktotheSolution:https://github.com/TheAlgorithms/Python/blob/master/hashes/hamming_code.pyContributingPull requests are welcome. For major changes, please open an issue first to
discuss what you would like to change.LicenseMITAlgorithm SourceTheAlgorithms/Python