Saravanan666/pypi-org huggingface dataset:
Package: 1d3-checkout-sdk
1D3 checkout page SDKThis is a set of libraries in the Python language to ease integration of your service
with the 1D3 Checkout Page.Please note that for correct SDK operating you must have at least Python 3.5.Payment flowInstallationInstall with pippipinstall1d3-checkout-sdkGet URL for paymentfromcheckout_page_sdk.gateimportGatefromcheckout_page_sdk.paymentimportPaymentgate=Gate('secret')payment=Payment('402')payment.payment_id='some payment id'payment.payment_amount=1001payment.payment_currency='USD'payment_url=gate.get_purchase_checkout_page_url(payment)payment_urlhere is the signed URL.Handle callback from 1D3You'll need to autoload this code in order to handle notifications:fromcheckout_page_sdk.gateimportGategate=Gate('secret')callback=gate.handle_callback(data)datais the JSON data received from payment system;callbackis the Callback object describing properties received from payment system;callbackimplements these methods:callback.get_payment_status()Get payment status.callback.get_payment()Get all payment data.callback.get_payment_id()Get payment ID in your system.
Package: 1NeuronPerceptron-Pypi-mdnazmulislam0087
-1NeuronPerceptron_Pypi1Neuron|Perceptron|_Pypi"""
author: Nazmul
email:md.nazmul.islam0087@gmail.com"""How to use thisFirst install the library using below command by using latest version-pipinstall1NeuronPerceptron-Pypi-mdnazmulislam0087==0.0.4Run the below code to see the training and plot file for or Gate, similarly you can use AND, NAND and XOR GATE to see the difference-fromoneNeuronPerceptron.perceptronimportPerceptronfromoneNeuronPerceptron.all_utilsimportprepare_data,save_model,save_plotimportpandasaspdimportnumpyasnpimportloggingimportoslogging_str="[%(asctime)s:%(levelname)s:%(module)s]%(message)s"logging.basicConfig(level=logging.INFO,format=logging_str)defmain(data,eta,epochs,modelfilename,plotfilename):df=pd.DataFrame(data)logging.info(f"The dataframe is :{df}")X,y=prepare_data(df)model=Perceptron(eta=eta,epochs=epochs)model.fit(X,y)_=model.total_loss()save_model(model,filename=modelfilename)save_plot(df,file_name=plotfilename,model=model)if__name__=="__main__":# << entry point <<OR={"x1":[0,0,1,1],"x2":[0,1,0,1],"y":[0,1,1,1],}ETA=0.3# 0 and 1EPOCHS=10try:logging.info(">>>>> starting training >>>>>")main(data=OR,eta=ETA,epochs=EPOCHS,modelfilename="or.model",plotfilename="or.png")logging.info("<<<<< training done successfully<<<<<\n")exceptExceptionase:logging.exception(e)raiseePackages required-matplotlibnumpypandasjoblibtqdmLimitationUsing one Neuron Perceptron, We cant make decision boundary for XOR GATe, In summary XOR Gate classification is not possible using one Neuron PerceptronReference -official python docsgithub docs for github actionsRead me editormore details can be found1Neuron Perceptron
Package: 1pass
A command line interface (and Python library) for reading passwords from1Password.Command line usageTo get a password:1pass mail.google.comBy default this will look in~/Dropbox/1Password.agilekeychain. If that’s
not where you keep your keychain:1pass --path ~/whatever/1Password.agilekeychain mail.google.comOr, you can set your keychain path as an enviornment variable:export ONEPASSWORD_KEYCHAIN=/path/to/keychain

1pass mail.google.comBy default, the name you pass on the command line must match the name of an
item in your 1Password keychain exactly. To avoid this, fuzzy matching is
made possible with the--fuzzyflag:1pass --fuzzy mail.googIf you don’t want to be prompted for your password, you can use the--no-promptflag and provide the password via standard input instead:emit_master_password | 1pass --no-prompt mail.google.comPython usageThe interface is very simple:from onepassword import Keychain

my_keychain = Keychain(path="~/Dropbox/1Password.agilekeychain")
my_keychain.unlock("my-master-password")
my_keychain.item("An item's name").passwordAn example of real-world useI wrote this so I could add the following line to my.muttrcfile:set imap_pass = "`1pass 'Google: personal'`"Now, whenever I startmutt, I am prompted for my 1Password Master Password
and not my Gmail password.The--no-promptflag is very useful when configuringmuttand PGP.muttpasses the PGP passphrase via standard in, so by inserting1passinto this pipline I can use my 1Password master password when prompted for my
PGP keyphrase:set pgp_decrypt_command="1pass --no-prompt pgp-passphrase | gpg --passphrase-fd 0 ..."ContributorsPip Taylor <https://github.com/pipt>Adam Coddington <https://github.com/latestrevision>Ash Berlin <https://github.com/ashb>Zach Allaun <https://github.com/zachallaun>Eric Mika <https://github.com/kitschpatrol>License1passis licensed under the MIT license. See the license file for details.While it is designed to read.agilekeychainbundles created by 1Password,1passisn’t officially sanctioned or supported byAgileBits. I do hope they like it though.
Package: 1pass2pass
1pass2passUtility for transfer items from the 1password (*.1pif files) to the pass (the standard unix password manager).Usagepython1pass2pass[-h][-v][-p][-f][-fl]<1piffilename><folder>Positional arguments:<1pif filename>     - path to *.1pif file for processing<folder>            - path to folder for store passwordsOptional arguments:-h,  --help         - show help message-v,  --verbose      - increase output verbosity-p,  --print-only   - print data into console, without saving into password store-f,  --force        - force overwrite existing passwords (default=False)-fl, --first-line   - Put password in first line (default=False)WARN: If you whant to use thePassaplication on iOS, you need to use the--first-lineoption.
Because thePassapp on iOS find the password in the first line.Examplepython 1pass2pass.py -v -f -fl ~/Downloads/1password.1pif /PersonalWhere we import passwords from~/Downloads/1password.1pifto the folder/Personalwith verbose output, force overwrite existing passwords and put password in first line.Requirementspython 3.6+loguru
Package: 1password-secrets
1password-secrets1password-secrets is a set of utilities to sync 1Password secrets. It enables:Seamless sharing oflocalsecrets used for development.
Developers starting out in a project can just use this tool to retrieve the.envfile needed for
local development.
Likewise it is also simple to push back any local changes to the 1password vault.More secure and simpler method of managing Fly.io secrets.
By default, Fly secrets must be managed byflyctl. This means that setting secrets in
production, developers must useflyctlpassing credentials via arguments - risking credentials
being stored in their histories. Alternatively one must secrets in a file and runflyctl secrets import. This works well, but you must ensure everything is synched to a
secret/password manager and then delete the file.
1password-secrets enables a leaner management of secrets via 1password. Via an app name,
automatically finds and imports secrets in an 1passwordsecure noteto Fly. This way you ensure
developers always keep secrets up-to-date and never lost files in their computer.Motivation: Using 1password for this avoids the need for another external secret management tool.
And keeps the access control in a centralised place that we already use.Getting startedRequirementsInstall the required dependencies:1Password >=8.9.131Password CLI >=2.13.1flyctl >=0.0.451Python >=3.9brew install --cask 1password 1password-cli && \
brew install flyctlAllow 1Password to connect to 1Password-CLI by going toSettings->Developer->Command-Line Interface (CLI)and selectConnect with 1Password CLI.Sign into your 1Password and Fly account (if you wish to use the fly integration).InstallationIn most systems (Mac and Linux) whenpip3(Python's 3 PIP) is in path
and you want to install it at the user level:pip3 install -U 1password-secretsOtherwise adapt it accordingly.UsageLocalFrom within a valid git repository with remote "origin" ending in<owner>/<repo>.git,
1password-secrets will be able topullandpushsecrets to a 1password secure note containingrepo:<owner>/<repo>in its name. By default it syncs to./.envfile,
this can overridden with afile_namefield containing the desired relative file path.To get secrets from 1Password, run:1password-secrets local pullTo push the local changes to 1Password, run:1password-secrets local pushFlyMake sure you have a Secure Note in 1Password withfly:<fly-app-name>in the title.fly-app-nameis the name of your fly application.To import secrets to fly, run:1password-secrets fly import <fly-app-name>Secrets can be edit directly on 1Password app or using the command:1password-secrets fly edit <fly-app-name>DevelopmentEnsure you havemakeinstalled.Create a virtual environment:make setup-venv.Install dependencies:make install-deps.Then you can install (link) the repo globally withmake local-install.Before pushing changes ensure your code is properly formatted withmake lint.
Auto format the code withmake format
Package: 1primo1
Este programa indica los numeros primos desde 2 hasta n, siendo n un entero indicado por el usuario.
La funcion se llama “primo(n)” y el paquete “mostrarprimo”.
Ejemplo, mostrarprimo.primo(15) indica todos los numeros primos desde 2 hasta 15.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version
Package: 1to001
1to001is made for padding numbers in filenames automatically. It’s written in Python 3.InstallationSystem-wide installation:$pipinstall1to001User installation:$pipinstall--user1to001For development code:$pipinstallgit+https://github.com/livibetter/1to100.gitExample$touch1.txt100.txt$1to001*.txt+001.txt?++performpadding(y/n)?y1.txt->001.txtOptions-i(--ignore-case)When cases are mixed, this option would ignore the cases, for example for files like:read100me1.TXT
read5Me02.txtThey can be renamed to:1to001 -i *.{txt,TXT}
+ read005Me02.txt
?     ++
+ read100me01.TXT
?          +
perform padding (y/n)?-y(--yes)Automatic yes to promptsMore information1to001on GitHubPyPISome usage examples in thisblog postLicenseThis project is licensed under the MIT License, seeCOPYING.
Package: 20220429-pdfminer-jameslp310
pdfminer.sixPlease Note this is a fork of the main package at 29/04/2022 12:00 GMT No updtaes are likley It has been forked and uplaoded to insure an wholely MIT version of the package is avalible. The following is from the origional package.We fathom PDFPdfminer.six is a community maintained fork of the original PDFMiner. It is a tool for extracting information from PDF
documents. It focuses on getting and analyzing text data. Pdfminer.six extracts the text from a page directly from the
sourcecode of the PDF. It can also be used to get the exact location, font or color of the text.It is built in a modular way such that each component of pdfminer.six can be replaced easily. You can implement your own
interpreter or rendering device that uses the power of pdfminer.six for other purposes than text analysis.Check out the full documentation onRead the Docs.FeaturesWritten entirely in Python.Parse, analyze, and convert PDF documents.PDF-1.7 specification support. (well, almost).CJK languages and vertical writing scripts support.Various font types (Type1, TrueType, Type3, and CID) support.Support for extracting images (JPG, JBIG2, Bitmaps).Support for various compressions (ASCIIHexDecode, ASCII85Decode, LZWDecode, FlateDecode, RunLengthDecode,
CCITTFaxDecode)Support for RC4 and AES encryption.Support for AcroForm interactive form extraction.Table of contents extraction.Tagged contents extraction.Automatic layout analysis.How to use the origional versionInstall Python 3.6 or newer.Installpip install pdfminer.six(Optionally) install extra dependencies for extracting images.pip install 'pdfminer.six[image]Use command-line interface to extract text from pdf:python pdf2txt.py samples/simple1.pdfContributingBe sure to read thecontribution guidelines.AcknowledgementThis repository includes code frompyHanko; the original license has been includedhere.
Package: 2048
2048My version of 2048 game, with multi-instance support, restored from
an old high school project.InstallationRunpip install 2048.Run2048to play the game. Enjoy.On Windows, you can run2048wto run without the console window.Resetting the gameIf for some reason, the data files get corrupted or you want to clear the high score...On Windows, deleteC:\Users\<yourname>\AppData\Roaming\Quantum\2048.On macOS, delete/Users/<yourname>/Library/Application Support/2048.On Linux, delete/home/<yourname>/.local/share/2048.
Package: 2048-cli
2048 cliA small clone of2048. In it, the player moves numbered blocks in a 4x4 grid, combining them to create a block with the number 2048.
The challenge lies in the strategy to avoid running out of moves possible.
The game ends when the grid is full and there are no more combinations availableIn this project, I also try to develop an A.I. using the Monte Carlo method to try to achieve the best possible score.InstallationInstall with pip or your favorite PyPI package manager$pipxinstall2048-cliThen run the following command in the terminal$2048-cliModesSingle PlayerIn single player mode, you command the moves with the aim of achieving the highest possible score.AI PlayingIn AI game mode, moves will be generated using a Monte Carlo search algorithm.
Package: 2048-py
2048What is this?It's 2048, written in Python by the Ladue High School Computer Science Club. It's still in its early stages, so expect bugs!Getting startedDownload and runDownload or clone this repo, then runpython3 main.py.If Python complains abouttermcolor, install it withpip install termcolor.Run onlineRun it online onRepl.it.Install usingpipInstall withpip install 2048-py.Run2048-pyto play the game.Get it from the AUROn Arch Linux, get the2048-pypackage from the AUR.Run2048-pyto play the game.
Package: 20XX
20XXfrom melee_20XX import Melee_v020XX is a PettingZoo-based library for Melee. (⌐■_■)Code Exampleimportos.pathimportmeleefrommelee_20XXimportMelee_v0frommelee_20XX.agents.basicimportCPUFox,RandomFoxplayers=[RandomFox(),CPUFox()]env=Melee_v0.env(players,os.path.expanduser('~/.melee/SSBM.ciso'),fast_forward=True)max_episodes=10if__name__=="__main__":env.start_emulator()forepisodeinrange(max_episodes):observation,infos=env.reset(melee.enums.Stage.FOUNTAIN_OF_DREAMS)gamestate=infos["gamestate"]terminated=Falsewhilenotterminated:actions=[]forplayerinplayers:ifplayer.agent_type=="CPU":# CPU actions are handled internallyaction=Noneelse:action=player.act(gamestate)actions.append(action)observation,reward,terminated,truncated,infos=env.step(actions=actions)gamestate=infos["gamestate"]NoteThis library requires Slippi, which in turn requires an SSBM 1.02 NTSC/PAL ISO. This library does not and will not distribute this. You must acquire this on your own!Installationpip install 20XXpip install git+https://github.com/WillDudley/libmelee.git(fixes some menu handling issues)CreditsHeavily relies onlibmelee,usesPettingZoo,originally forked frommelee-env.
Package: 21CMMC
An extensible MCMC framework for 21cmFAST.This code usessemantic versioning, though this will strictly
begin whenv1.0.0is officially shipped.Free software: MIT licenseFeaturesSeamless integration withemcee-based MCMC.MCMC is easily extensible via the addition of different likelihoods using the same underlying data.DocumentationSeehttps://21CMMC.readthedocs.org.AcknowledgingIf you find21CMMCuseful in your research please cite at least one of the following
(whichever is most suitable to you):Bradley Greig and Andrei Mesinger, “21CMMC: an MCMC analysis tool enabling
astrophysical parameter studies of the cosmic 21 cm signal”, Monthly Notices of the
Royal Astronomical Society, Volume 449, Issue 4, p.4246-4263 (2015),https://doi.org/10.1093/mnras/stv571Bradley Greig and Andrei Mesinger, “Simultaneously constraining the astrophysics of
reionization and the epoch of heating with 21CMMC”, Monthly Notices of the Royal
Astronomical Society, Volume 472, Issue 3, p.2651-2669 (2017),https://doi.org/10.1093/mnras/stx2118Bradley Greig and Andrei Mesinger, “21CMMC with a 3D light-cone: the impact of the
co-evolution approximation on the astrophysics of reionization and cosmic dawn”,
Monthly Notices of the Royal Astronomical Society, Volume 477, Issue 3, p.3217-3229
(2018),https://doi.org/10.1093/mnras/sty796Jaehong Park et al.,  “Inferring the astrophysics of reionization and cosmic dawn
from galaxy luminosity functions and the 21-cm signal”, Monthly Notices of the
Royal Astronomical Society, Volume 484, Issue 1, p.933-949 (2018),https://doi.org/10.1093/mnras/stz032Changelogv1.0.0devMore fleshed-out interface to cosmoHammer, with base classes abstracting some common
patterns.New likelihoods and cores that are able to work on any data from the21cmFASTpipeline.Better loggingBetter exception handlingpip-installableDocumentationPipenv supportFull code formatting applied
Package: 21cmSense
A python package for calculating the expected sensitivities of 21cm experiments
to the Epoch of Reionization and/or Cosmic Dawn power spectrum.InstallationFor UsersClone/download the package and runpip install[-e].in the top-level.If you are acondauser (which we recommend), you may want to install the following
usingcondarather than them being automatically installed with pip:$ conda install numpy scipy pyyaml astropyFor DevelopmentClone/download the package and runpip install[-e].[dev]in the top-level.Runpre-commitinstall;pre-commitinstall--hook-type=commit-msgto install the
pre-commit hook checks.We recommend using thecommitizentool to write commit messages – we use the commit
messages to do our versioning!UsageThere are two ways to use this code: as a python library or via the CLI.
More documentation on using the library can foundin the docs, especially in thegetting started tutorialA more involved introduction to the CLI can be found in theCLI tutorial.As a taste, the simplest possible usage is by using the CLI as follows:$ sense calc-sense <SENSITIVITY_CONFIG_FILE.yml>Other options to thecalc-senseprogram can be read by using:$ sense calc-sense --helpAn example config file is in this repository underexample_configs/sensitivity_hera.yml,
which details the various parameters that can be set. In all, three configuration files
are required – one defining anobservatory, another defining anobservation, and thesensitivityone already mentioned.The CLI can also be used in a two-step process, by running:$ sense grid-baselines <OBSERVATION_CONFIG_FILE.yml>and then:$ sense calc-sense <SENSITIVITY_CONFIG_FILE.yml> --array-file=<ARRAY_FILE.pkl>where theARRAY_FILEis produced in the first step (and its location is printed during
the execution).Running TestsAn example of how to run tests is in the Github Workflowtestsuite.yaml. In short,
just runpytestin the top-level directory after installing the package.AcknowledgmentFor details of the observing strategy assumed by this code, and other relevant
scientific information, please seePober et al. 2013AJ….145…65PandPober et al. 2014ApJ…782…66PIf you use this code in any of your work, please acknowledge these papers,
and provide a link to this repository.
Package: 23andme-to-vcf
# 23andme to VCFA simple command-line tool to convert 23andMe raw data files to VCF format.# Install` pip install23andme-to-vcf`# Usage`23andme-to-vcf--inputin.txt--fastaGRCh37.fa--faiGRCh37.fa.fai--outputout.vcf `
Package: 24p
24p[1, 2, 3, 4, 5, 6, 7, 8, 9, 10] * 4总共有91390种组合,其中79936种有解,有解率87.47%去重后715种组合,其中566种有解,有解率79.16%b/a[1,2,7,7]24=(7*7-1)/2[3,8,8,10]24=(8*10-8)/3[4,4,10,10]24=(10*10-4)/4ab/c = (ab)/(xy)[6,9,9,10]24=9*10/6+98/(1/3)[1,3,4,6]24=6/(1-3/4)[1,4,5,6]24=6/(5/4-1)[1,6,6,8]24=6/(1-6/8)[3,3,8,8]23=8/(3-8/3)(b+c/a)a = ab+c[1,5,5,5]24=(5-1/5)*5[2,2,7,10]24=(10/2+7)*2[2,4,10,10]24=(4/10+2)*10[2,7,7,10]24=(10/7+2)*7[3,3,7,7]24=(3/7+3)*7[4,4,7,7]24=(4-4/7)*7(b+c/a)d = (b+c/a)2a = 2(ab+c)[2,5,5,10]24=(5-2/10)*5ab+ac = a(b+c)[1,5,6,6]24=5*6-1*6[2,3,3,10]24=3*10-2*3[2,5,8,8]24=5*8-2*8[5,6,6,9]24=6*9-5*6[6,6,6,10]24=6*10-6*6[6,8,8,9]24=8*9-6*8[7,8,8,10]24=8*10-7*82*12=243*8=244*6=2412+12=2414+10=2415+9=2416+8=2417+7=2418+6=2420+4=2421+3=2425-1=2428-4=2430-6=2432-8=2435-11=2436-12=2440-16=247+8+9=248+8+8=242*8+8=244*8-8=24
Package: 2b2t.py
2b2t.pyThis package handles all things 2b2t!InstallationYou can install the package with pip.pip install 2b2torpip3 install 2b2tOr you can install with GitHubClone the repoRun setup.pyInstall Python3 if you don't already have itInstall requests and colorama if you don't already have itgit clone https://github.com/BGP0/2b2t.py.git
python3 setup.py build install
pip3 install requests
pip3 install coloramaUsageDocsCreditsOrginal Software made by BGPThanks to SkilzMastr for turning the checker into a package!
Package: 2ch-downloader
2ch-downloaderDownload all files of 2ch.hk thread.Installationpipinstall2ch-downloaderUsageusage: 2ch-downloader [-h] [-d DIRECTORY] [--max-directory-name-length LENGTH] URL

positional arguments:
  URL                   Thread url

options:
  -h, --help            show this help message and exit
  -d DIRECTORY, --directory DIRECTORY
                        Download directory
  --max-directory-name-length LENGTH
                        Max thread directory name length, 128 by default
Package: 2d6io-cryptobot
2d6io-cryptobotDependenciesThis project uses @danpaquin's excellentcoinbasepro-pythonWe also use Flask to generate a restful endpoint to serve our datapip3installcbpropip3installflaskWe also use Angular and NPM to serve a web interface for the application.
You will need to havethe latest versionof node installed.Run the following installs once node is complete (seethe docsfor more info):npminstall-g@angular/cliConfigRenameconfig_example.initoconfig.iniand update it with the right values.UNDER NO CIRCUMSTANCES SHOULDconfig.iniBE UPLOADED TO THE REPO OR SHARED WITH OTHERSThe config is already in the .gitignore so the only way this will happen is if you modify that. Don't do it.RunningRestful ServicesTo run from a command line run the following:python3app.pyThis will start the flask restful service, which can be opened from yourlocalhostThis restful service has several endpoints:/api/wallet- Returns the current state of your wallet/api/analyze_coins- Runs a single pass of the coin analysis process using the data feed from CoinbaseWeb InterfaceTo run the web interface, navigate from a console to/interfaceand run the following:ngserveNavigate to yourlocal angular serverand you will see the wallet interface.To start the analysis service, clickStart Monitoring. To disable the service, clickStop MonitoringDonateLike the project? Donate!Wallet:0xe6f912cba2D254511170884AF4637689BE8758E6
Package: 2D-cellular-automaton
2D Cellular AutomatonThis project was inspired by discussions in MATH 340 Mathematical Excursions. While we visualized multiple starting indicies for 2D cellular automata in Excel, I knew a Python script would allow greater functioniality and easier usage.I came across a respository on GitHub by Zhiming Wang titledrule30. Nearly all the code is borrowed from there and made it unnecessary for me to start from scratch. All the functionalities from Wang's solution exist in this project, with the only additions being supporting multiple starting indicies.Table of ContentsInstallationUsageCreditLicenseInstallationpip install 2DCellularAutomatonUsagefromCellularAutomatonimportAutomatonrows=100#Any positive numberrule=30#From 1-256. More can be seen here https://mathworld.wolfram.com/ElementaryCellularAutomaton.htmlstarting_indicies=[20,60]#Note this refers to the columns and columns = 2 * rows - 1, which is why rows - 1 yields center.block_size=1automata=Automaton(rows=rows,rule=rule,starting_indicies=starting_indicies)image=automata.image(block_size=block_size)image.save('Rule 30 | Column 20 and 60.jpeg')OutputCreditZhiming Wang'srule30LicenseMIT