Saravanan666/pypi-org huggingface dataset:
Package: zaifbot
chart_with_upwards_trend:algorithmic trading bot for zaif exchangeZaifBot is a Pythonic algorithmic trading library that run onZaif
Exchange.It is developed by using Python 3.5.3 and tested in Python 3.4, 3.5,
3.6.FeaturesEasy to use: Zaifbot is library for trading beginners, so designed
simple.Support all currency pairs dealt withZaif
ExchangeTechnical indicators like SMA, EMA, Bollinger Bands, RSI, ADXYou don’t have to prepare market data. Zaifbot internal get data fromzaif
APITo get started with Zaifbot take a look at thetutorialand thefull
documentation.『ZaifBotドキュメント』Note:ZaifBot is unofficial library ofTech Bureau,
Inc.Please use it at your own risk.Installationinstaling with pipAfter activating an isolated Python environment, run$pipinstallzaifbotcurrently supported platforms includes:Linux 64-bitsOSX 64-bitsWindows 64-bitsNote:if you useOSX, we assumehomebrewis installed.SetupAfter installing Zaifbot, run$install_ta_libTA-Lib is open-source library of technical analysis indicators that
ZaifBot is depending on.This command install TA-Lib in your operating system.then,$init_databaseWheninit_databasecommand is executed,db/zaifbot.dbis created for SQLite and schema is migrated.Your Trade records will be saved in this file.Quick StartSee ourgetting started
tutorialThe following code implements a simple trading algorithm using zaifbotfromzaifbot.tradeimportStrategyfromzaifbot.rulesimportEntry,Exitfromzaifbot.configimportset_keysfromzaifbot.trade.toolsimportlast_price# setting your Zaif API keyset_keys(key='your_key',secret='your_secret')# creating rule to buyclassBuyWhenCheap(Entry):defcan_entry(self):iflast_price(self._currency_pair.name)<25000:returnTruereturnFalse# creating rule to exitclassExitWhenPriceGoUp(Exit):defcan_exit(self,trade):# 'trade' has the entry informationcurrent_price=last_price(trade.currency_pair.name)ifcurrent_price>trade.entry_price+5000:returnTruereturnFalsemy_entry=BuyWhenCheap(currency_pair='btc_jpy',amount=0.01,action='bid')my_exit=ExitWhenPriceGoUp()# strategy is an unite of automated tradingmy_strategy=Strategy(entry_rule=my_entry,exit_rule=my_exit)my_strategy.start(sec_wait=1)FeedbackIf you have a question, or find a bug, feel free to open an issue.ContributingAny kind of contributions are welcome.Please contribute by following the steps below.Fork and clone this repository to your computerRundocker build-tzaifbot .to create development environmentEdit source code and make pull request todepelopbranch
Package: zaifer
zaiferzaiferとは、ZaifAPIをPythonから呼び出すためのライブラリです。
webapiを利用するための煩雑な手続きを隠蔽し、
methodベースでZaifAPIを簡単に利用できます。使い方１．ZaifのアカウントページでAPIKeyを発行します。APIKeyは第３者に明かさないよう大切に扱ってください。２．pipコマンドを実行し、モジュールをダウンロードしてください。pip install zaifer３．クラスをインポートし、下記の通り使用してください。fromdatetimeimportdatetimefromdecimalimportDecimalfromzaiferimport*# Zaifのアカウント画面で取得したAPIキーを設定します。key='aa75ffcc-6c72-4b54-a936-xxxxxxxxxxxx'secret='0fbe7367-0821-4417-9c65-xxxxxxxxxxxx'# アカウント情報を取得します。account=Account(key,secret)print(account.get_info())print(account.get_info2())print(account.get_personal_info())print(account.get_id_info())print(account.withdraw('btc','17A16QmavnUfCW11DAApiJxp7ARxxxxxxxx',Decimal('10.0'),None,Decimal('0.0005')))print(account.get_deposit_history('jpy'))print(account.get_withdraw_history('btc'))# チャート情報を取得します。chart=Chart()print(chart.get_ohlc('btc_jpy','60',datetime(2018,11,4,0),datetime(2018,11,5,0)))# 現物取引のマーケット情報を取得します。market=Market()print(market.get_currencies('all'))print(market.get_currency_pairs('btc_jpy'))print(market.get_last_price('btc_jpy'))print(market.get_ticker('btc_jpy'))print(market.get_trade_history('btc_jpy'))print(market.get_depth('btc_jpy'))# 現物取引の注文情報を取得・送信します。trade=Trade(key,secret)print(trade.get_trade_history('btc_jpy',datetime(2018,11,5)))print(trade.get_active_orders())print(trade.open_order('btc_jpy','bid',Decimal('780000'),Decimal('1')))print(trade.cancel_order(92537563))# AirFXのマーケット情報を取得します。airfx_market=AirFXMarket()print(airfx_market.get_last_price())print(airfx_market.get_ticker())print(airfx_market.get_trade_history())print(airfx_market.get_depth())print(airfx_market.get_swap_history())# AirFXの注文情報を取得・送信します。airfx_trade=AirFXTrade(key,secret)print(airfx_trade.get_positions())print(airfx_trade.get_position_history(2864))print(airfx_trade.get_active_positions())print(airfx_trade.create_position('bid',420100,1,4))print(airfx_trade.update_position(22904,720000))print(airfx_trade.cancel_position(22905))関連情報ZaifAPIドキュメント
Package: zai-pl
ZaiZai is a small programming language which I wrote for fun. The language:Is Dynamically typedIs Entirely written in PythonSupports classesSupports first-class functionsSupports writing and importing modulesNOTE:This is a project made for both learning and fun. It is not meant to be used in serious projects.InstallationGitgitclonehttps://github.com/sehnsucht13/zai-pl.gitcdzai-pl# Start a REPLpython3-mzai# Run a file called FILENAME.zaipython3-mzaiFILENAME.zaiPip# Install from pippipinstall--userzai-pl# Start a REPLzai-pl# Run a file called FILENAME.zaizai-plFILENAME.zaiLanguage TourA small tour of the language showing some of the features available along with language syntax can be found within thedocs/language-tour.mdfile.Missing Features and Future ImprovementsHere is a list of the features which are currently missing but will be implemented in the futureLanguage FeaturesBasic class inheritanceforloopsMultiline commentsPrefix/Postfix increment and decrement operatorsPrinting more than one variable at a time.Floating Point NumbersAdd support for source code commentsDev FeaturesImprove test coverageAutomatic Deploy of new versions with CircleCIInternals and DocumentationThe language grammar can be found within thedocs/grammarfile.Some more in-depth details about the implementation(how objects are represented internally, environment...) can be found withindocs/architecture.mdfile.ResourcesBelow are some of the resources which I found helpful while making this.Crafting InterpretersModern Compiler DesignMax Bernstein's Blog
Package: zaius-export
zaius_export: export api for custom reportingUsing zaius_export, you can build and automate custom reports.
Like this:importdatetimeimportzaius.exportasexport# count the users who clicked this weeklast_week=datetime.date.today()-datetime.timedelta(days=7)last_week=datetime.datetime.fromordinal(last_week.toordinal()).replace(tzinfo=datetime.timezone.utc)query="""select zaius_idfrom eventswhereevent_type = 'email'and action = 'click'and ts >{}""".format(int(last_week.timestamp()))rows=export.API().query(query)print(len(set([r['zaius_id']forrinrows])))Or, use pre-baked reports. Like this:$zaius-exportproduct-attribution2019-1-12019-1-31Or This:$zaius-exportlifecycle-progress2018-12019-1Or This:$zaius-exportemail-metrics90972019-4-252020-4-25Replace '9097' with the campaign ID you want to view metrics for.
Replace '2019-4-25 2020-4-25' with the timerange of your choice. This timerange reflects the times assigned to the 'Scheduled Campaign Run Time' field of email send events. For each of the send events that meet that time range, any and all opens, clicks, and spamreports are counted if they happened, irregardless of when they happened.
This timerange also serves as the lower and upper bounds in which unsubscribe events happened.You can specify the output file. This example creates an export.csv file in the Documents directory:$zaius-export--output~/Documents/export.csvproduct-attribution2019-1-12019-1-31InstallationInstallation happens in the usual way:$pipinstallzaius_exportNow thezaius-exportutility should be on your PATH.AuthorizationAPI calls depend on having a set of credentials available to authenticate your request. By
default, all tools will look for these to be defined in $HOME/.zaius_api. This file
should look like this:[auth]
aws_access_key_id: ***
aws_secret_access_key: ***
zaius_secret_key: ***You can find the appropriate values for this file by logging into Zaius. Click the gear icon
next to your business name at the top left of the screen, select "APIs" from the menu on the
left (under Data Management), and then find your zaius_secret_key under the Private tab.Your AWS credentials can be found in the Integrations section (Gear Icon, Data Management,
Integrations) by opening the AWS integration.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: zakatqr
Django Zakat QR CodeUnofficial Python Packageto create QR Code Image as Base64 or as PNG for e-invoice system by ZATCAInstallationPyPi$pipinstallzakatqrGitHub$gitclonehttps://github.com/halmogbl/zakat_qr
$cdzakat_qr
$python3setup.pyinstallUsageVariablesZakatqr class's variables and descriptionsVariable NameDescriptionseller_nameSeller’s name.tax_numberSeller’ tax number, which is the VAT registration number.timestampInvoice date, which is the timestamp of the electronic invoice.total_with_vatInvoice total amount, which is the electronic invoice totalwith VAT.total_vatTax amount, which is the VAT total.Generate Base64fromzakatqrimportZakatqrinvoice=Zakatqr(seller_name="Example",tax_number="123456789",timestamp="2021-06-25 07:58:56.550604",total_with_vat="115",total_vat="15",)print(invoice.tlv_to_base64())# AQdNeSBuYW1lAgkxMjM0NTY3ODkDGjIwMjEtMDYtMjUgMDc6NTg6NTYuNTUwNjA0BAMxMTUFAjE1Generate A QR Code Image as Base64fromzakatqrimportZakatqrinvoice=Zakatqr(seller_name="Example",tax_number="123456789",timestamp="2021-06-25 07:58:56.550604",total_with_vat="115",total_vat="15",)print(invoice.qr_image_encoded_uri())# data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...Create A QR Code ImagefromfatooraimportFatoorainvoice=Zakatqr(seller_name="Example",tax_number="123456789",timestamp="2021-06-25 07:58:56.550604",total_with_vat="115",total_vat="15",)image=invoice.qr_code()image.save("qr_code_img.png")
Package: zake
A python package that works to provide a nice set of testing utilities for thekazoolibrary.It includes the following functionality:Storage access (for viewing what was saved/created).Kazoomostlycompatible client API.Sync/transaction/create/get/delete… commands.Listener support.And more…It simplifies testing by providing a client that has a similar API as the kazoo
client so that your tests (or applications/libraries that use kazoo) do not
require a real zookeeper server to be  tested with (since this is not available
in all testing environments).
Package: zakhar-pycore
zakhar_pycoreBase python package for the Zakhar projectPart of theZakhar's BrainPart of theZakhar ProjectInstallationFrom pypi.org:pipinstallzakhar-pycoreFrom GitHub:pipinstallgit+https://github.com/an-dr/zakhar_pycoreFrom GitHub for a specific branch:pipinstallgit+https://github.com/an-dr/zakhar_pycore@branch_name
Package: zakipy
Abouthello fellas today i will explain this package my name is zaky and lets check it outconverter:this module is for convertion like base 16 or like chiper and there is the converter core(ConverterCore) this is where you build your own conversion the built in converion are base16,base10,base8,base2,chiperMath:this module is for math but just a little bit because its still in development it just had fibbonaci and prime and other stuff
Package: zalando-aws-cli
This package provides thezawscommand line utility to exchange OAuth tokens for temporary AWS credentials by calling theAWS Credentials Service.InstallationThezalando-aws-clipackage is part of thestupsbundle:$sudopip3install-Ustups$stupsconfigureUsage$zawslist# list all allowed account roles$zawsloginmyaccRoleName# write ~/.aws/credentialsYou can configure your default account/role to only runzaws:$zawsset-defaultmyaccRoleName$zawsThere are multiple ways of abbreviating the command line:$zawsli# command can be abbreviated$zawsloginmyacc# only the account name is needed if you have only one role$zawsaliasmyaliasmyaccPowerUser# create an alias$zawslomyalias# use the aliasUse-hto get a list of commands and help:$zaws-h# list top-level commands$zawslogin-h# help on the "login" commandRunning locallyYou can run the module directly during development:$python3-mzalando_aws_clilist$python3-mzalando_aws_cliloginmyaccPowerUserUnit tests$sudopip3installtox$tox
Package: zalando-commons
Python BoilerplatePython Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://python-boilerplate.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-08-09)First release on PyPI.
Package: zalando-deploy-cli
This CLI provides an opinionated, high-level wrapper for the “Autobahn” deployment API:It only provides high-level commandsOnly support what CI/CD pipelines needLow-level access to Kubernetes provided byzkubectlIt usesMustachefor templatingFamiliar to Zalando users: we already use it inSenzaLanguage-agnostic: users could switch to other tools without changing their manifestsSteps required by CI/CD PipelineApply stateful resourcesCloud Formation templatesKubernetes manifestsShould be possible for a whole directoryCreate Kubernetes deploymentSwitch “traffic” / scale deployments pod by podNeeds to check pod “readyness”Delete old deploymentsScale deployment (manually triggered)Why another CLI?The CI/CD pipeline could also call the “Autobahn” deployment API directly, but:CI/CD pipeline (Jenkinsfile) would contain a lot of code and logic to interact with Autobahn API directlyHard to test interaction with Autobahn API without running CI/CD (Jenkins)No standard templating for Kubernetes manifests — first approach relied on another 3rd party tool (sigil)Switching to another CI/CD would require reimplementing logic from JenkinsfileUsageAll commands interacting with the “Autobahn” deployment API either need the--executeflag (for immediate approval and execution) or additional calls toapproveandexecute.$sudopip3install-Uzalando-deploy-cli$zdeployconfigure\--deploy-api=https://deploy-api.example.org\--aws-account=aws:7..\--aws-region=eu-central-1\--kubernetes-cluster=aws:7..:kube-1$zdeployapply./apply/my-service.yaml--execute\application=kioversion=cd53release=12$zdeploycreate-deploymentdeployment.yamlkiocd5312--execute$zdeploywait-for-deploymentkiocd5312$zdeployswitch-deploymentkiocd53122/10--execute$zdeploywait-for-deploymentkiocd5312$zdeployswitch-deploymentkiocd53123/10--execute$# ..$zdeployswitch-deploymentkiocd531210/10--execute$zdeploydelete-old-deploymentskiocd5312--execute$zdeployscale-deploymentkiocd531215--execute# manual scalingYou can also just use theMustachetemplate interpolation manually:$zdeployrender-templatemy-manifest.yamlfoo=barvar2=123Configure for ClusterYou can automatically set Kubernetes Cluster specific configuration using the
cluster’s alias:$zdeployconfigure-for-clusterALIASNewconfiguration:aws_account:aws:7..kubernetes_api_server:https://kube-1.example.orgkubernetes_cluster:aws:7..:kube-1If you don’t havezkubectlconfigured you also need to provide the Cluster
Registry URL:$zdeployconfigure-for-cluster--cluster-registry-urlhttps://registry.example.orgALIAS
Package: zalando-kubectl
Kubernetes CLI (kubectl) wrapper in Python with OAuth token authentication.This wrapper scriptzkubectlserves as a drop-in replacement for thekubectlbinary:it downloads the currentkubectlbinary from Googleit generates a new~/.kube/configwith an OAuth Bearer token acquired viazign.it passes through commands to thekubectlbinaryInstallationRequires Python 3.6+.$sudopip3install--upgradezalando-kubectlUsageYou can directly login to a known Kubernetes API server endpoint:$zkubectlloginhttps://my-api-server.example.org$zkubectlcluster-infoYou can also configure a Cluster Registry to look up clusters by ID:$zkubectlconfigure--cluster-registry=https://cluster-registry.example.org$zkubectlloginmy-cluster-idThe Cluster Registry needs to provide the following HTTP API for this to work:$curl-H"Authorization: Bearer$(zigntok)"https://cluster-registry.example.org/kubernetes-clusters/my-cluster-id{"api_server_url":"https://my-api-server.example.org"}There is an additional convenience command to open theKubernetes Dashboard web UIin the browser:$zkubectldashboardWaitingforlocalkubectlproxy............Startingtoserveon127.0.0.1:8001OKOpeninghttp://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy..Unit TestsRun unit tests with Tox:$sudopip3installtox$toxLocal ChangesIt’s recommended to have avirtualenvfor the project. The project usesBlackfor code formatting,
please configure your editor to use it.Go to the project dir and install dependencies$cd<project-path>$pipinstall-rrequirements.txt$pipinstall--editable.Now the code change will just be reflected in thezkubectlbinary$zkubectl<whatever>
Package: zalgotext
# z̟̜ͯ̐ͯͯͯͯ̑ͯͤͯ͊ͯͯa̵̩ͯͯͯ͊ͯ̉ͯl̷ͯ̀ͯͯ҈̪͉̳ͯ̒ͯͯͤͯͯ͒ͯͯ҉͈ͯ̽ͯ̋ͯͯg̣ͯͯo̢̫͉̮͇̭͈͖̺̼͙̣ͯͯͯ́ͯ̒ͯ́ͯͯͯͯͯͯͯͯͯ̒ͯͯͯͯͯ̑ͯ̿̕͝Command line zalgo.# Installationpip install zalgotext# Usage$ zalgo hail satanh̸͕̰͓̺ͭ̔ͭͭͭͭ͐ͭ̎ͭ́ͭͭ̔ͭͮͭ̋ͭͭ͏̴̨̡̱̤̞̥̺̜ͭͭͭͭ̿ͭ̆ͭ̔ͭͭ̏ͭͪͭ̓ͭͭͭͭ͑ͭͭ͑ͭͭͭ͗ͭͭ͆ͭͭ̂ͭͭ͐ͭ̕͠͝͠a̶̶̫̲͎ͭͭͦͭͭͭͭ̉ͭ̆ͭͭͤͭi̞ͭͭ͒ͭ̋ͭ̇ͭ̾ͭ҉̵̣͕̩͚̯̟̱ͭ̾ͭͯͭͭͭͭͭͭͭͨͭͭͭͭ͘l̮ͭͭ͛ͭ͗ͭͭ̓ͭͣͭ̒ͭ͞ ̷̸̡̮̺͖̖̜̜̻̺͎̝̼ͭ̃ͭ̃ͭͭͭ̌ͭͭͭ̽ͭͭͥͭ͛ͭͭͭͭͭͭ̂ͭͭͭͭ̈ͭ́ͭ̓ͭͭ̔ͭ̋ͭͭͭͭͭͭͭͭ̌ͭ̚̕͢͠ͅ҉ͭsͭ҉̡̺͚ͭ͛ͭ̍ͭͭͭͭͭ̕a͎̩̯̪̝͇̳̬͎̙͎̯ͭ̾ͭͭͭ͂ͭͭͭͭͭͭͭͭͩͭ̌ͭͭͭͭ̄ͭ̾ͭt̹ͭͧͭͭͬͭaͭ̔ͭ҈̶͕̙̣͈ͭͭͭͭ̏ͭͭͭͭͭͤͭͮͭ͜͞nͭ҉̵̸͕̣͉̟̥ͭͭ͌ͭͭͭͭ̊ͭͭͭ̄ͭͭͭͭ̆ͭ̇ͭ́ͭ͢͡҉̡̢̢̛̥̺͚͓͔͚̫͚̦̦̺ͭͭ͊ͭͭͭ̀ͭ͌ͭͭͭͭͧͭͭͭ̊ͭͭ̉ͭ͑ͭ͛ͭͭͭͭͭ̓ͭͭZalgo can also copy straight to the clipboard:$ zalgo cthulu lives –copyč̻̻t̻̩̻̻͍̻̻̭̻̻̄̄̎h̨̻̻̻̻̻̙̻̻̻̣̻͓̻̻̻̻̻̻͔̻̝̻̅ͣ̀̂̆̾ͫ̀ͅͅu̻̻ͦl̻̻̭̻̀u̻҈̻͚̻̻̻̭̻̳̻̻̦̻̻̄́͠͞͏̨̛̻̻̻̻̻̻̻̻̻̘̻̻̻̲̻̖̻̻͕̻̻̻̻͚̻̻̜̻̻͐̀̊͛ͬͧ́̑̆͂ͩ̇̚͜ ̻̻̆͏̻̱̻̫̻̟̻̻͐͏̷̷̷̡̢̧̡̻̮̻̻̻̟̻̻̻̻̻̻̻̻̗̻̞̻̻̻̺̻̭̻̻̻̻̙̻̤̻̪̻̻̻̻̻̻̻̻̦̻̠̻̻̻͖̻̉̐̀̎ͪ̇̃̀ͧ͗ͥͮ̕͘͘͡l̵̨̻̲̻̻̤̻̻̻̻̻̻̻̮̻̻͍̻͈̻̻̮̻̻̭̻͑͋̌ͮ͆ͧ͜ͅ͏̻̻̻̻͖̻̻͉̻̻̻ͤͪ̾ͫ̑̚i̻̬̻̪̻҉̶̸̡̻̻̻̻̻̻̻̝̻̻̻̻̻̻̱̻̻̞̻̗̻̻̱̻̻̩̻̤̻̻̻̻̮̻́̎ͫ͋ͣ̓̿ͪ̄̿̓͑̚͢v̻̻̻̻̻ͥ̈ͫͨ҈̧̻̻̯̻̫̻̻̻̞̻̻̻͎̻̯̻̻̻̻̻̻͓̻͍̻̻̻̻̠̻̤̻̻ͮ͒ͫ̇͋̆̓ͪ̔̊̚͘ͅe̻͔̻̜̻͈̻͉̻s̴̢̻̻̻̻̻̻̞̻̳̻̻̻̻̱̻͖̻̻̝̻̤̻̻̣̻̻̻̪̻̻̻̥̻̻̈́̊ͬ̆ͩ̓ͪ̃̄̓ͅ͏̧̻͕̻̩̻̻̻̯̻̻̻̺̻͉̻̻̻̦̻̻̤̻̻͓̻̺̻̠̻͕̊̂̔̂̑̐̽And that’s all it does!Rich Jones 2015. Based on [@mjgiarlo](https://github.com/mjgiarlo)’spyzalgo.
Package: zama
Zama Homomorphic Execution FrameworkOur mission atZamais to protect people’s privacy by preventing data breaches and unethical surveillance.Following a recent breakthrough in homomorphic encryption, we are now building a ZeroTrust deep learning framework that enables fast and accurate inference over encrypted data, with minimal performance overhead, no changes to the network architecture and no retraining necessary.Zamais open-source by design, as we believe privacy-enabling technologies should benefit the widest possible community of developers and researchers.WarningThis package is not a working package. Zama homomorphic execution framework will be available a bit later.Installationpython3 -m pip install zama --upgradeTestimportzamazama.hello_world()
Package: zamac
Zama CompilerOur mission atZamais to protect people’s privacy by preventing data breaches and unethical surveillance.Following a recent breakthrough in homomorphic encryption, we are now building a ZeroTrust deep learning framework that enables fast and accurate inference over encrypted data, with minimal performance overhead, no changes to the network architecture and no retraining necessary.Zamais open-source by design, as we believe privacy-enabling technologies should benefit the widest possible community of developers and researchers.WarningThis package is not a working package. Zama compiler will be available a bit later.Installationpython3 -m pip install zamac --upgradeTestimportzamaczamac.hello_world()
Package: zama-sdk
Zama SDKOur mission atZamais to protect people’s privacy by preventing data breaches and unethical surveillance.Following a recent breakthrough in homomorphic encryption, we are now building a ZeroTrust deep learning framework that enables fast and accurate inference over encrypted data, with minimal performance overhead, no changes to the network architecture and no retraining necessary.Zamais open-source by design, as we believe privacy-enabling technologies should benefit the widest possible community of developers and researchers.WarningThis package is not a working package. Zama SDK will be available a bit later.Installationpython3 -m pip install zama_sdk --upgradeTestimportzama_sdkzama_sdk.hello_world()
Package: zam-authentic
Zam-AuthenticZam-Authentic is a Python package that provides validation functions for applications created in Zambia. It includes
validation for phone numbers, National Registration Card (NRC) numbers, and location data.GitHub Linkhttps://github.com/Munalula-Sikazwe/ZamAuthenticInstallationYou can install Zam-Authentic using pip:Copy codepip install zam-authenticUsage
Phone Number Validation
To validate a phone number, you can use the phonenumber_is_valid function:python
Copy codefromzam_authentic.phone_number_validationimportphonenumber_is_validis_valid=phonenumber_is_valid('+260978123456')# Returns TrueNRC ValidationTo validate an NRC number, you can use the validate_nrc function:python
Copy codefromzam_authentic.nrc_validation.validateimportvalidate_nrcis_valid=validate_nrc('123456/78/9',delimiter='/')# Returns TrueLocation Data Validation
To validate location data, you can use the validate_location function:python
Copy codeLicense
This project is licensed under the MIT License - see the LICENSE file for details.
Get Districts
To get a list of districts in Zambia, you can use the get_districts function:python
Copy codefromzam_authentic.locations.get_locationsimportget_districtsdistricts=get_districts('province-name')Returns a list of district namesGet ProvincesTo get a list of provinces in Zambia, you can use the get_provinces function:python
Copy codefromzam_authentic.locations.get_locationsimportget_provincesprovinces=get_provinces()Returns a list of province namesGet ConstituenciesTo get a list of constituencies in Zambia, you can use the get_constituencies function:python
Copy codefromzam_authentic.locations.get_locationsimportget_constituenciesconstituencies=get_constituencies("district-name")print(constituencies) # Returns a list of constituency namesDocumentationFor full documentation follow the link ->https://zamauthentic.readthedocs.io/en/latest/DisclaimerThis package is intended for educational purposes only and is not intended to be used in production systems without
proper review and testing. The authors of this package are not responsible for any damages that may occur as a result of
using this package. Use at your own risk.
Package: zambeze
ZambezeDocumentation for Zambeze can be found onReadTheDocs.Get in TouchThe main channel to reach the Zambeze team is via the support email:support@zambeze.org.Bug Report / Feature Request:our preferred channel to report a bug or request a feature is viaZambeze'sGithub Issues Track.InstallationDependency installation should proceed similar to any python package.pipinstall-rrequirements.txt.Zambeze CLIzambeze --helpDevelopment EnvironmentCode FormattingZambeze's code usesBlack, a PEP 8 compliant code formatter, andFlake8, a code style guide enforcement tool. To install the
these tools you simply need to run the following:pipinstallflake8blackBeforeevery commit, you should run the following:black.
flake8.If errors are reported byflake8, please fix them before commiting the code.Running TestsThere are a few dependencies that need to be installed to run the pytest, if you installed the requirements.txt file then this should be covered as well.pipinstallpytestFrom the root directory using pytest we can run:python3-mpytest-munit-svSome tests should only be run from the context of the GitLab runner these can be run with:python3-mpytest-mgitlab_runner-sv