Skip to main content

Alchimie Data Solutions : Generic functions

The purpose of this Python package is to group together all the generic functions used in Onyx development.

adsGenericFunctions

class PostgresInput:

def init(self, database: str, user: str, password:str, port:str, host: str, batch_size=1000)

This class is used to communicate with a postgres database. Initialising the class starts the connection, so it needs the database name, user, password, port and host. It also sets the default read buffer to 1000.

def del(self)

This method just closes the connection to the database.

def read(self, query: str)

This method belongs to the PostgresInput class. It reads the parameter query and yield the results in batches of size batch_size.

def write(self, query: str, params=None)

This method belong to the PostgresInput class. It executes the parameter query, this query can be an insert, an update or a delete operation. We can add parameters to the execution by the parameter params set to None by default.

def send_mail(sgApiClient: str, destinataire: List[str], msg: str, from_email: str, subject: str) -> Response

This function sends an email to the destinataire from from_email with the subject subject and a message msg. It also needs the api key sgApiClient. It returns the send response.

Release files for adsGenericFunctions 0.2.53

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adsGenericFunctions 0.2.53
File Size Uploaded
adsgenericfunctions-0.2.53.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adsGenericFunctions 0.2.53
File Interpreter ABI Platform
adsgenericfunctions-0.2.53-py3-none-any.whl Python 3 none any Details

Total release size:38.4 kB

Release files / adsgenericfunctions-0.2.53.tar.gz

Download URL adsgenericfunctions-0.2.53.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
417ccee18d16275a77be5bc7aa1662f472dcf0a7d8cfbd58cc0a1109cd37b8a0
BLAKE2b-256 checksum
How to use checksums
9d477d61a143c81271c38a378a45cba8704767c0928f89a4844387f81587c28e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.7 Windows/10

Release files / adsgenericfunctions-0.2.53-py3-none-any.whl

Download URL adsgenericfunctions-0.2.53-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d00ce2647f8da27153c6f7d127d06cb497ebee9a98eb87e7bdbe8bcf6c296e6
BLAKE2b-256 checksum
How to use checksums
e830e6ed037ca648831d9eda9abb130749f83e77398e4c709004528f7c7591ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.7 Windows/10

Release history Release notifications | RSS feed

This release

0.2.53 This release

2 release files

0.2.52

2 release files

0.2.51

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page