Skip to content
forked from mouh2020/algeria

Python library which gives you a (clé) and (rip) of a given (ccp) ccp number account.

Notifications You must be signed in to change notification settings

amuza2/algeriaCCP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Algeria

Algeria is a Python library that allows you to calculate the (clé) and RIP (Relevé d'Identité Postal) of a given CCP (Compte de Chèque Postal) number account. It provides a simple and convenient way to obtain the clé and rip values for CCP accounts. Please note that additional features may be added to the library in the future.

Contributions are welcome! If you would like to contribute to the development of the Algeria library, feel free to submit pull requests or open issues on the GitHub repository.

Instalation

You can install the "algeria" library using pip:

pip install algeria

Usage

The CCP class provides methods to calculate the (clé) and (RIP) for a given CCP account number.

  • Initialization

To create an instance of the CCP class, pass the CCP account number as a string to the constructor:

from algeria.ccp import CCP

ccp_account = CCP("1234567890")
  • Calculating the clé

To calculate the clé of the CCP account, use the get_cle method:

cle = ccp_account.get_cle()

print("Clé CCP:", cle)
  • Calculating the rip

To calculate the rip of the CCP account, including the first 8 digits "00799999", use the get_rip method:

rip = ccp_account.get_rip()

print("RIP:", rip)
  • Calculating the cle of the rip

To calculate only the clé of the rip, use the get_rip_cle method:

rip_cle = ccp_account.get_rip_cle()

print("RIP Clé:", rip_cle)

Example

Here's an example demonstrating the usage of the "algeria" library :

from algeria.ccp import CCP

ccp_account = CCP("1234567890")

cle = ccp_account.get_cle()
print("Clé CCP:", cle) // 45

rip = ccp_account.get_rip()
print("RIP:", rip) // 0079999912345678906

rip_cle = ccp_account.get_rip_cle()
print("RIP Clé:", rip_cle) // 06

The library was developed with the assistance of ChatGPT and the algorithms extracted from the web app provided here.

🚀 About Me

A self-taught Python programmer who enjoys developing simple scripts, bots, and automation tools.

About

Python library which gives you a (clé) and (rip) of a given (ccp) ccp number account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%