Saravanan666/pypi-org huggingface dataset:
Package: bank2
bankThis is an example project demonstrating how to publish a python module to pypi.##installationRun the following to install'''python
pip install bank
'''##usage'''python
from bank2 import deposit_amount
from bank2 import withdraw_amount
from bank2 import home_loan
from bank2 import personal_loan
from bank2 import vehicle_loan
from bank2 import home_loanif you want deposit a amountdep_amount=deposit_amount.dep_amount(10000,10000000)
print(dep_amount)if you want withdraw a amountwith_amount=withdraw_amount.with_amount(1000,10000)
print(with_amount)#home_loan
h_loan=home_loan.hm_loan(10000)
print(h_loan)
#personal_loan
per_loan=personal_loan.per_loan(1000)
print(per_loan)
#vehicle_loanv_loan=vehicle_loan.ve_loan(10000)
print(v_loan)'''
'''python
pip install -e .[dev]
Package: bank-account-validator
Bank Account ValidatorPython implementation for bank account validation.Currently, the biggest Brazilian banks are implemented - and so being validated. There is no other countries’ banks implemented, but the code is modular and it can be done easily.Usage:frombank_account_validator.coreimportBankbank_class=Bank.get('bank_code','country_code')bank_class(branch='branch',branch_digit='branch_digit',account='account',account_digit='account_digit').execute()Examples:frombank_account_validator.coreimportBank,BrazilianBank# Account below is correct, so nothing is raised by calling execute()bank_class=Bank.get('237','BR')bank_class(branch='1769',branch_digit='8',account='200040',account_digit='7').execute()# Account below has invalid branch so InvalidBranch will be raisedbank_class=BrazilianBank.get('237')bank_class(branch='1769',branch_digit='0',account='200040',account_digit='7').execute()# InvalidBranch: Branch "1769-0" is wrong.# Account below has invalid account so InvalidAccount will be raisedbank_class=BrazilianBank.get('237')bank_class(branch='1769',branch_digit='8',account='200040',account_digit='0').execute()# InvalidAccount: Account "0200040-0" is wrong.# Sometimes there is not an unitary validation for both branch and account# I mean, the full combination is evaluated at once.bank_class=BrazilianBank.get('033')bank_class(branch='2006',branch_digit='',account='01008407',account_digit='1').execute()# InvalidBranchAndAccountCombination: Combination (branch="2006", account="01008407-1") does not match.# It also validates wether digits must be supplied or not, as well as branch/account lengthsbank_class=BrazilianBank.get('237')bank_class(branch='111769',branch_digit='8',account='200040',account_digit='7').execute()# InvalidBranchlength: For bank code "237", branches length must be 4.bank_class(branch='1769',branch_digit='8',account='11200040',account_digit='7').execute()# InvalidAccountlength: For bank code "237", accounts length must be 7.bank_class(branch='1769',branch_digit='',account='200040',account_digit='7').execute()# MissingBranchDigit: For bank code "237", branches must have a digit, of length 1.bank_class(branch='1769',branch_digit='11',account='200040',account_digit='7').execute()# UnexpectedBranchDigit: For bank code "237", branches must have 1 digits.bank_class(branch='1769',branch_digit='8',account='200040',account_digit='').execute()# MissingAccountDigit: For bank code "237", accounts must have a digit, of length 1.bank_class(branch='1769',branch_digit='8',account='200040',account_digit='11').execute()# UnexpectedAccountDigit: For bank code "237", accounts must have 1 digits.ContributeDid you think in some interesting feature, or have you found a bug? Please let me know!Of course you can also download the project and send me somepull requests.You can send your suggestions byopening issues.You can contact me directly as well. Take a look at my contact information athttp://filwaitman.github.io/(email is preferred rather than mobile phone).
Package: bankbarcode
Python library to generate barcodes for financial documentsCurrently only the following codes are implemented:cuaderno57, Cobros por ventanilla y autoservicio, serie normas y procedimientos bancarios, No57, Enero 2001Recibo507, Recibos y otros (Cobros por Ventanilla y Autoservicio, V2001)Feel free to implement more.frombankbarcode.cuaderno57importRecibo507entity='01234567'suffix='023'ref='12345678901'notice='123456'amount='6543.21'recibo507=Recibo507(entity,suffix,ref,notice,amount)# get checksum valuechecksum=recibo507.checksum()# save barcocde as /tmp/mybarcode.svgprovided_filename='/tmp/mybarcode.svg'generated_filename=recibo507.save(provided_filename)# get a string with the barcode in SVG fromatsvg=recibo507.svg()Read the documentation athttp://bankbarcode.readthedocs.org
Package: bank-base-gt
Bank Base Parser for Guatemala BanksBase models and clases to build parsers for Guatemalan Banks.This library provides only models and base structure to develop further integrations with each individual bank.Supported banksBanruralBAC - WIPHow to use itInstallationpip install bank_base_gtExample to get movements of all accounts of Banrural bank, you should install first, banrural libraryExamplecredentials=UserPasswordBankLogin(username="",password="")deftest():withBanruralBank(credentials)asconnection:# Login with bank and make sure that we logout after doing all operationsaccounts=connection.fetch_accounts()# Fetch all accountsforainaccounts:a.fetch_movements(datetime.date.today()-datetime.timedelta(days=20),datetime.date.today()+datetime.timedelta(days=1),)# Fetch all movementstest()
Package: bank_card
Get bank card info according to bank card number!### Installationbank-cardis hosted onPYPIand can be installed
as such:$ pip install bank-cardAlternatively, you can also get the latest source code fromGitHuband install it
manually:$ git clone https://github.com/xjw0914/bank-card.git
$ cd bank-card
$ python setup.py installFor update:$ pip install bank-card --upgrade### Basic UsageIn [1]: from bank_card import BankCard

In [2]: c = BankCard(6225700000000000)

In [3]: c.bank_name
Out[3]: u'\u4e2d\u56fd\u5149\u5927\u94f6\u884c'

In [4]: print c.bank_name
中国光大银行

In [5]: print c.to_dict()
{'bank_name': u'\u4e2d\u56fd\u5149\u5927\u94f6\u884c', 'card_type': u'CC', 'bank_image': u'https://apimg.alipay.com/combo.png?d=cashier&t=CEB', 'card_type_name': u'\u4fe1\u7528\u5361', 'validated': True, 'bank': u'CEB'}### LicenseApache-2.0
(Here)
Package: banker
BankerBanker is a wrapper aroundnordigenAPIs in order to obtain banking transactions. To use
Banker, it is necessary to create an account at nordigen and obtain individual secret keys, more on that below.Installationpip3installbankerUsage1. First time setupTo use Banker, it is first required to sign up atnordigenand thereafter create secret keys at thefollowing link. Afterwards, aauth.yamlfile can be generated
using the following, together with the generatedsecret_idandsecret_keyfrom nordigen.>>>importbanker>>>secret_id="SECRET_ID_FROM_NORDIGEN">>>secret_key="SECRET_KEY_FROM_NORDIGEN">>>client=banker.Client()>>>client.add_keys(secret_id,secret_key)After running the above, anauth.yamlfile will be created in the same folder. It is no longer necessary to use thesecret_idandsecret_keysince everything will be stored in
theauth.yamlfile.2. Create and sign agreement with a bank.Next, we would like to create a connection with a single bank. In order to do this, a unique id for an
institution is needed. In this example, we are interested in connecting all accounts fromSwedbank(if you
have any), which can be done in the following way.>>>client=banker.Client()# We need to find the unique institution_id for swedbank.>>>client.search_institution("swedbank")[{'id':'SWEDBANK_SWEDSESS','name':'Swedbank','bic':'SWEDSESS','transaction_total_days':'730','countries':['SE'],'logo':'https://cdn.nordigen.com/ais/SWEDBANK_LONG_SWEDSESS.png','payments':False}]# With the 'id' above we can submit a requisition and sign an agreement. Open the following link and proceed to sign the agreement.>>>client.submit_requisition("SWEDBANK_SWEDSESS")'https://ob.nordigen.com/psd2/start/..../SWEDBANK_SWEDSESS'3. List available accounts and get transactions, balances, etc.Now it is possible to list all accounts that are available from the banks that you have signed an agreement
with.>>>client.accounts(){'SWEDBANK_SWEDSESS':['YOUR_SWEDBANK_ACCOUNT_ID_1','YOUR_SWEDBANK_ACCOUNT_ID_2'],'NORWEGIAN_SE_NORWNOK1':['YOUR_NORWEGIAN_ACCOUNT_ID_1']}# With one account_id above, get all transactions from the last 90 days.>>>client.transactions("YOUR_ACCOUNT_ID")Alotofoutput,whichvariesbetweendifferentbanks.# It is also possible to obtain account balance.>>>client.account_balance("YOUR_ACCOUNT_ID"){'balances':[{'balanceAmount':{'amount':'AMOUNT_HERE','currency':'SEK'},'balanceType':'interimAvailable'},{'balanceAmount':{'amount':'AMOUNT_HERE','currency':'SEK'},'balanceType':'interimBooked'}]}
Package: bankfind
Python interface to the FDIC's API for publically available bank dataDocumentation:https://bankfind.dpguthrie.comSource Code:https://github.com/dpguthrie/bankfindFDIC Documentation:https://banks.data.fdic.gov/docs/Overviewbankfindis a python interface to publically available bank data from the FDIC.There are currently, as of 8/11/20, five endpoints that the FDIC has exposed to the public:failures- returns detail on failed financial institutionsinstitutions- returns a list of financial institutionshistory- returns detail on structure change eventslocations- returns locations / branches of financial institutionssummary- returns aggregate financial and structure data, subtotaled by year, regarding financial institutionsRequirementsPython 2.7, 3.5+Requests- The elegant and simple HTTP library for Python, built for human beings.Pandas- Fast, powerful, flexible and easy to use open source data analysis and manipulation toolInstallationpip install bankfindSuccessfully installed bankfindrestart ↻Exampleimportbankfindasbf# Get Institutionsdata=bf.get_institutions()# Get Institutions from Colorado with high ROEdata=bf.get_institutions(filters="STNAME:Colorado AND ROE:[25 TO *]")# Get Commercial Banks from Colorado that aren't S-Corpsdata=bf.get_institutions(filters="STNAME:Colorado AND SUBCHAPS:0 AND CB:1")LicenseThis project is licensed under the terms of the MIT license.
Package: bankid-asyncio
bankid-asyncio 🏦Badges 🏷Dependencies ⛓Description 📖bankid-asyncio- is a BankID client for Python with asyncio support.Asynchronous realization turned out to be implemented due to the fact that the library is written based on HTTPX, which
allows not only synchronous requests (Client), but also asynchronous ones (AsyncClient).Install 💾pippip install bankid-asyncioPoetrypoetry add bankid-asyncioDocumentation 🗂 (In progress)Documentation🔗
Package: bankin-bridge
Bankin-bridge-pythonis a Python module for communicating with theBridgeapi.io API.Table of ContentsMain requirementsInstallationBasic usageAuthorsLicenseMain requirementsPython3.4+,Requests2.0+.InstallationTo install Bankin Bridge, please usepip(orpipenv) as follows:$pipinstall--prebankin-bridgeBasic usageThe first step to interact with the Bankin Bridge API interface is to initialize abridge.Clientinstance. You’ll need a client ID and client secret this initialization:>>>frombridgeimportClient>>>client=Client('<CLIENT_ID>','<CLIENT_SECRET>')Then you can easily register a new user, authenticate them and interact with the implemented
entities and the underlying API endpoints. Here are some examples:>>>client.user.create('test@example.com','<PWD>'){'uuid':'c3b140ad-aa85-49ca-a254-de77de521bbf','resource_uri':'/v2/users/c3b140ad-aa85-49ca-a254-de77de521bbf','resource_type':'user','email':'text@example.com'}>>>client=client.user.authenticate('test@example.com','<PWD>'){'access_token':'<ACCESS_TOKEN>','expires_at':'2018-11-19T17:20:33.546Z','user':{'uuid':'12f34ca5-da8c-4ac2-8882-3e428033f300','resource_uri':'/v2/users/12f34ca5-da8c-4ac2-8882-3e428033f300','resource_type':'user','email':'test@example.com'}}>>>client.set_access_token('<ACCESS_TOKEN>')>>>client.item.add_url(){'redirect_url':'https://connect.bankin.com?token_uuid=fb12c345-b1ae-234a-1cc2-123456789dac'}>>>client.account.list()...Authorsimpak Finance <tech@impakfinance.com>.LicenseMIT. SeeLICENSEfor more details.
Package: banking633
Introduction:Thebanking633system is divided into 2 subpackageAdminwith modulesview,action,cardandUserwith modulesaccount,transaction.mainis the main menu,data.jsonis for storing all action data thoughstore.Running the ApplicationExecution: The application can be started by running mainimport banking633andimport banking633.maindirectly, then select role depending on the desired mode (admin or user).
We general "account: 1, password: 1" for admin, user should have account created at the first time.MainView ClassPurpose: Serves as the entry point for the application, allowing users to choose between admin and user modes.
Methods:
run_admin: Executes the admin view.
run_user: Executes the user view.
choice_user_type: Displays welcome message and lets users choose their role (admin or user).AdminStore ClassPurpose: Handles data storage and retrieval.
Attributes: data_file_path (path to the data file), users (dictionary of users).
Methods:
save_all_data: Saves all user data to a file.
read_users_from_file: Reads users from a file and converts them to User objects.action ClassPurpose: Handles user actions such as creating or removing users.
Methods:
createUser: Registers a new user after validating inputs.
randomCardId: Generates a unique card ID.
killUser: Deletes a user based on card number after validation.
checkPasswd: Validates a password.Card ClassPurpose: Represents a bank card.
Attributes: cardId, cardPasswd, cardMoney, cardLock.
Method: to_dict: Converts card attributes to a dictionary.User Class-Purpose: Represents a user.
Attributes: name, idCard, phone, card.
Method: to_dict: Converts user attributes to a dictionary.AdminView Class (Inherits from Store)Purpose: Provides the admin interface for managing users.
Methods:
quit: Saves data and exits.
login: Handles admin login.
admin_view: Displays admin options and handles user interactions.UserUserView Class (Inherits from Store)Purpose: Provides the user interface for banking transactions.
Methods:
menu: Displays the user menu.
user_view: Handles user interactions based on menu choices.
quit: Saves data and exits.transaction ClassPurpose: Handles banking transactions like balance check, withdrawal, deposit, and transfer.
Methods:
balance: Displays the user's current balance.
withdraw: Processes a withdrawal after validation.
deposit: Processes a deposit.
transfer: Handles fund transfers between accounts.
checkPasswd: Validates the password with a maximum of three attempts.
Package: bankline-direct-parser
Python module for parsing Natwest/RBS Bankline Direct Data Services files.RequirementsOnly Python 3.7+ is supported.Installationpipinstallbankline-direct-parserUsagefrombankline_parser.data_servicesimportparse# from filewithopen(filename)asf:parsed=parse(f)ifparsed.is_valid():print(parsed.accounts[0].records[0].transaction_code)else:print(parsed.errors)# from list of rowsparsed=parse(lines)Model LayoutDataServicesFile
    VolumeHeaderLabel
    [Account]
        FileHeaderLabel
        UserHeaderLabel
        [DataRecord|BalanceRecord]
        UserTrailerLabelDevelopmentPlease report bugs and open pull requests onGitHub.To work on changes to this library, it’s recommended to install it in editable mode into a virtual environment,
i.e.pip install--editable.Usepython-mteststo run all tests locally.
Alternatively, you can usetoxif you have multiple python versions.[Only for GitHub team members] Distribute a new version toPyPIby:updating theVERSIONtuple inbankline_parser/__init__.pyadding a note to theHistorypublishing a release on GitHub which triggers an upload to PyPI;
alternatively, runpython-mbuild; twine upload dist/*locallyHistory0.8Migrated test, build and release processes away from deprecated setuptools commands.
No significant library changes.0.7Maintenance release, no library changes.0.2 - 0.6No significant library changes, other than support for newer versions of python.0.1Original release.CopyrightCopyright (C) 2023 HM Government (Ministry of Justice Digital & Technology).
See LICENSE.txt for further details.
Package: banknatchapolfunctions
ฟังก์ชันของ Bank Natchapolเพื่อทดสอบการใช้งาน upload libraryChange Log0.2.0 (30/08/2023)0.1.3 (23/08/2020)0.1.2 (23/08/2020)0.1.1 (23/08/2020)0.1.0 (23/08/2020)0.0.3 (19/04/2020)0.0.2 (19/04/2020)0.0.1 (19/04/2020)First Release
Package: banko
BankoA small pure Python library for randomly generating Banko-plader (Danish), also known as Bingo plates in the UK.Dependencies:Python 3How to install:pipinstallbankoUsage:frombanko.algorithmsimportAlgorithm2frombanko.renderimportrender_asciialgo=Algorithm2()rows=algo.generate(seed=42)print(render_ascii(rows))Output:1    21 30          73 80
     22    41    66 74 82
  18 28    43 58       86Future workGenerate pretty images from array.
Package: bank-of-ghana-fx-rates
Bank of Ghana Exchange Rate Python LibraryA simple unofficial python package to scrape data bank of Ghana.
Affiliated toGhanaNews-ScraperandGhanaShops-ScraperOverviewThe unofficial Python API client library for Bank of Ghana allows individuals to pull historical and real-time exchange rates data using the Python programming language.
Learn more by visitingBoGExample Google Colab NotebookClick Here:Installationpipinstallbank-of-ghana-fx-ratesPython Usage:frombog.scraperimportGhanaRatesurls=['https://www.bog.gov.gh/treasury-and-the-markets/historical-interbank-fx-rates/','https://www.bog.gov.gh/treasury-and-the-markets/treasury-bill-rates/',]forpage_urlinurls:print(f"Downloading from :{page_url}")fx=GhanaRates(url=page_url)# download datafx.download()# get infofx.get_info()CLI Usage:bog-fx--url'https://www.bog.gov.gh/treasury-and-the-markets/historical-interbank-fx-rates/'BuyMeCoffeeCreditsTheophilus Siameh
Package: bankreader
bankreaderA light bank statement reader/parser. The project is oriented towards Romanian banks statements.
Input for the reader is thealready exported datafrom your bank of choice, the library will not support web interaction with bank APIs (if existing). At least not in the foreseeable future.The project is still new and may suffer API modifications.Currently there is support only for theRomanian Raiffeisen .xls statements.Examplefrombankreader.romaniaimportRaiffeisenStatementimportosstatement_xls_path=os.path.join('test','statements','Extras_de_cont_12345678_20012018_31012018.xls')statement=RaiffeisenStatement(xls_path=statement_xls_path)print(statement.account_number)print(statement.client.iban)print(statement.client.client_address)fortransactioninstatement.transactions:print(transaction.amount)print(transaction.description)print(transaction.is_income)Other examples can be seen in the tests.InstallationTo install/use the module you can:download, runpip install -r requirementsand copy thebankreaderfolder to where you want to user it and simply use such asfrom bankreader ...download the project and runsetup.py installinstall via pip:pip install bankreader
Package: bankruptcy
BankruptcyA bankruptcy document parser.NotesBankruptcy is an open source repository to extract content from bankruptcy documents
It was built for use with Courtlistener.com.Its main goal is to convert bankruptcy documents into readable JSON data.Further development is intended and all contributors, corrections and additions are welcome.BackgroundThis was built to help extract content from bankruptcy documents.DocumentsWe currently support the following documents in a voluntary petition.Bankruptcy Official Form 106 A/B (Property)Bankruptcy Official Form 106 D (Secured Creditors)Bankruptcy Official Form 106 E/F (Unsecured Creditors)Bankruptcy Official Form 106Sum (Statistics)TODOsB 101 (Official Form 101)B2030 (Form 2030) (12/15)521.05 (12/1/08)Official Form 106COfficial Form 106GOfficial Form 106HOfficial Form 106IOfficial Form 106JOfficial Form 106DecOfficial Form 107Quickstartfrom bankruptcy import extract_all
results = extract_all(filepath=filepath)will return a dictionary of the forms (if found) and the contents of the document.Some NotesThis tool relies heavily on PDFPlumber.Somethings to keep in mind this parser has been tested only on digital PDFs
from recent court filings (ie 2018 and earlier).  This parser does not work on scanned
bankruptcy documents and was built and tested on documents from the Pacific Northwest.InstallationInstalling bankruptcy is easy.pip install bankruptcyOr install the latest dev version from githubpip install git+https://github.com/freelawproject/bankruptcy.git@masterTestingpython3 -m unittest test.testsFutureContinue to improve and add documents for extraction.Future updatesDeploymentTag a release with a similar format v1.0.0, update setup.py and push to master.LicenseThis repository is available under the permissive BSD license, making it easy and safe to incorporate in your own libraries.Pull and feature requests welcome. Online editing in GitHub is possible (and easy!)
Package: bankstatementextractor-sau
Saudi Bank Statement ExtractionThis repository contains a Python program designed to extract data from Saudi based bank statements.Table of ContentsIntroductionPrerequisitesUsageModules DescriptionIntroductionThe Python program imports several packages necessary for extracting data from bank statements. It accepts a pdf in bytes format,checks for tampering, if no tampering is detected converts the first page to a image and runs a custom trained YOLOv5 model to detect the bank. This results in a  bank label which then runs the code corresponding to extracting data from that bank statement.  The ouput of the extraction is a json file containing the revenues, expenses and cash flows by month.PrerequisitesEnsure the following packages are installed:
setuptools
numpy
scipy
pandas
Unidecode
DateTime
Pillow
PyPDF2
Python-IO
pdf2image
torch
scikit-learn
pdfplumber
google-cloud-translate
You can install these packages using pip:UsageTo use this program, you can clone the repository, place your images in the same directory and modify the IMAGES list accordingly. Run the program in your terminal or command prompt as:
python ocr_and_facial_recognition.pyPlease note that this program does not include any user interface and does not handle any errors or exceptions beyond what is included in the code.Modules DescriptionImporting Necessary Packages:
The program begins by importing all the necessary packages used in Bank Statement Extraction.Data Introduction:This section defines a list of image file names that will be used as input for the OCR and facial recognition steps of the program.Load easyocr and Anti-Spoofing Model:Two functions to load the easyOCR package with English language support and the anti-spoofing model respectively.Data Preprocessing:Several functions are defined here to open and read an image file, convert it to grayscale, perform a radon transform, find the busiest rotation, and rotate the image accordingly.Facial recognition:This section is dedicated to detecting faces in an image using a HOG (Histogram of Oriented Gradients) face detector, extracting features, and computing the similarity between two sets of features using the cosine similarity metric.Information Extraction:Finally, the program uses OCR to extract information from an image, computes the similarity between faces in different images, and outputs this information in a JSON file.Please refer to the source code comments for more detailed explanations.This is a basic explanation of the project and its usage. This project was last updated on 24th May 2023 and does not have any GUI or error handling beyond what is included in the code. For more details, please refer to the comments in the source code.