Skip to main content

A library for sharing data between python scripts

Project description

THIS LIBRARY IS FOR SHARING DATA BETWEEN TWO OR MORE THAN TWO SCRIPTS WITH 'SQL' DATABASE, BUT YOU CAN USE 'pybridge' AS A SIMPLE DATABASE LIBRARY

:::::::::::::::::::::::::::::::::::::::::::::::;

The main class of library is 'bridge' with some methods:

send_to_bridge() => for saving and sharing data with SQL database

receive_from_bridge(self, all=True, find_key=None, on_delete=False) => for getting datas from selected bridge by built object, The type of received keys and values id 'string'

***args: all : RETURNS ALL RECORDS

find_key : YOU CAN FILTER RECORDS BASED ON THEIR KEYS

on_delete : DELETES ALL FOUNDED RECORDS WHEN IT IS 'TRUE'

delete_bridge_data(find_key=None) => delete records from databse with filtering by 'KEYS'

get_bridge_record_count() => RETURNS RECORDS COUNT IN BRIDGE

raw_sql(query: str, entry: tuple = ()) => RUNNING SQL IN BRIDGE

***args:

query: SQL query for command

entry: inputs for query, every item in this tuple must be tuple!

raw_query_select(query: str, entry: tuple = ()) => SELECTING WITH RAW SQL QUERY

***args:

query: SQL query for command

entry: inputs for query, every item in this tuple must be tuple!

This function returns tuple data

send_dict_data(data: dict) => SEND DATA WITH DICTIONARY

add_bridge_listener() => MAKE A LISTENER FOR BRIDGE EVENTS

It waits for events and after each event you have to call it again and because of that you can usually use it in 'while True' Loops

the built object of 'bridge' has new_event and event_list

new_event ==> It shows the last event that happended to bridge and database

event_list ==> list of saved events by listener

:::::::::::::::::::::::::::::::::::::::::::::::;

THIS PACAKGE IS DEVELOPED BY 'MRT' => (MOHAMMAD REZA TAGHDIRI) A PERSIAN PROGRAMER.

I HOPE THAT 'pybridge' MAKE SOME WORKS EASIER FOR YOU....

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybridge-mrt-1.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybridge_mrt-1.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pybridge-mrt-1.1.0.tar.gz.

File metadata

  • Download URL: pybridge-mrt-1.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pybridge-mrt-1.1.0.tar.gz
Algorithm Hash digest
SHA256 43b729a2e8c519e6c3e1275cb9b89b3ccdc21de224b98e3753b066ff2df5a9a0
MD5 412f26da9ee2f99641fde7dca425ec9f
BLAKE2b-256 304f72f46a53812c739e140d7a6b58459ada208dc27d64c73c71216959a00844

See more details on using hashes here.

File details

Details for the file pybridge_mrt-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pybridge_mrt-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pybridge_mrt-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29e161192b90842a7bd1507ec945812e259e8752bfe5a10a9009927b5ff0088f
MD5 1cbdbe355bbebe1d68c242028c02de1a
BLAKE2b-256 d58474ea8c89cc46307ad78d1c814601e0b7e11e211d0a6ebe27678e0af7a25d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page