DataShare - Simple library for data sharing between scripts and public functions calling

Related tags

Networking DataShare
Overview

DataShare - Simple library for data sharing between scripts and public functions calling.

Installation.

Install code,
Delete LICENSE, README, readme.txt (optionaly),
Unpack datashare to "$PYTHON_PATH\lib",
Done!

Examples.

Let's create "server and client".

post.py

from datashare import DataCenter


# Creating data center.
appdata = DataCenter(
  1920,
  1080,
  'Name',
  '%Path',
  False
)

get.py

from datashare import Get


data = Get('post') # "post" - post.py
settings = data.get('appdata') # "appdata" - data center name

Result.

(1920, 1080, 'Name', '%Path', False)

So, how you can see, now we maked this data public, and every script can get it. Let's create "server and client", but with functions and simple app example.

post.py

from datashare import FunctionsCenter


funcs = FunctionsCenter(
  lambda: print('Welcome!'),
  lambda: print('Sorry!')
)

client.py

from datashare import FunctionsCaller


userinp = input('You are older that 18?: ').lower()
functions = FunctionsCaller('post')

functions.callif('funcs', userinp == 'yes', 1, False)
functions.callif('funcs', userinp == 'no', 2, False)

Run it.

You are older that 18?: Yes
Welcome!

You are older that 18?: no
Sorry!

Get version.

from datashare import DATASHARE_VERSION

print(DATASHARE_VERSION)

Conclusion.

So, how you can see, how strong and simple this library! When need to use this library? When you need create public data or function(s) for another scripts, it's like a database. This library in BETA, so you can spectate bugs, errors, or typing errors, sorry for that, we fix all soon!

End.

Thank you for reading, i hope you liked my library, good luck, bye!

You might also like...
Secure connection between tenhou Window client and server.

tenhou-secure The tenhou Windows client looks awesome. However, the traffic between the client and tenhou server is NOT encrypted, including your uniq

This repository contain sample code of gRPC Communication between Python and GoLang
This repository contain sample code of gRPC Communication between Python and GoLang

This repository contain sample code of gRPC Communication between Python and GoLang, the Server is running on GoLang while Python is running the client

Share clipboards between two devices in a network

Shared Clipboard I felt the need for sharing clipboard texts between virtual machines but I didn't find any reliable solutions for this (I use HyperV)

Easily share folders between VMs.

This package aims to solve the problem of inter-VM file sharing (rather than manual copying) by allowing a VM to mount folders from any other VM's file system (or mounted network shares).

NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

The sequel to SquidNet. It has many of the previous features that were in the original script, however a lot of the functions that do not serve much functionality have been removed.

SquidNet2 The sequel to SquidNet. It has many of the previous features that were in the original script, however a lot of the functions that do not se

These scripts send notifications to a Webex space when a new IP is banned by Expressway, and allow to request more info or change the ban status
These scripts send notifications to a Webex space when a new IP is banned by Expressway, and allow to request more info or change the ban status

Spam Call and Toll Fraud Mitigation Cisco Expressway release X14 is able to mitigate spam calls and toll fraud attempts by jailing the spam IP address

A repository dedicated to IoT(internet of things ) and python scripts
A repository dedicated to IoT(internet of things ) and python scripts

📑 Introduction Week of Learning is a weekly program in which you will get all the necessary knowledge about Circuit-Building, Arduino and Micro-Contr

Connection package to a raspberry or any other machine using ssh, it simplifies the deployment scripts and monitoring.
Connection package to a raspberry or any other machine using ssh, it simplifies the deployment scripts and monitoring.

Connection package to a raspberry or any other machine using ssh, it simplifies the deployment scripts and monitoring.

Releases(1.1)
Owner
Ivan Perzhinsky.
Typical programmer on Python, Lua, Golang, Java. Welcome to my profile!
Ivan Perzhinsky.
Docker container for demoing Wi-Fi calling stack.

VoWiFiLocalDemo - Docker container that runs StrongSwan and Kamailio to demonstrate how Wi-Fi calling works on smartphones.

null 18 Nov 12, 2022
Very simple and tiny file sharing service written in python

Simple File sharing tool Sharing client usage (You will need to use python3 for linux) main.py --send -f file/path Optionnal flags : pwd : set a passw

null 2 Jul 26, 2022
Geowifi 📡 💘 🌎 Search WiFi geolocation data by BSSID and SSID on different public databases.

Geowifi ?? ?? ?? Search WiFi geolocation data by BSSID and SSID on different public databases.

GOΠZO 441 Dec 23, 2022
A server and client for passing data between computercraft computers/turtles across dimensions or even servers.

ccserver A server and client for passing data between computercraft computers/turtles across dimensions or even servers. pastebin get zUnE5N0v client

null 1 Jan 22, 2022
A library of functions that can be used to manage the download of claims from the LBRY network.

lbrytools A library of functions that can be used to manage the download of claims from the LBRY network. It includes methods to download claims by UR

null 13 Dec 3, 2022
Public HTTPS access to Home Assistant with Dataplicity service

Custom component for public HTTPS access to Home Assistant with Dataplicity service. Should work on any Linux PC or ARM, not only Raspberry as Dataplicity service said. Don't work on Windows.

Alex X 70 Oct 3, 2022
Ip-Seeker - See Details With Public Ip && Find Web Ip Addresses

IP SEEKER See Details With Public Ip && Find Web Ip Addresses Tool By Heshan >>

M.D.Heshan Sankalpa 1 Jan 2, 2022
A fire and forget command-line tool to allow for easy transitions of VPN connections between a pool of AWS machines.

VPN Swapper A fire and forget command-line tool to allow for easy transitions of VPN connections between a pool of AWS machines. Dependencies poetry -

Workday 5 Jul 7, 2022
An ftp syncing python package that I use to sync pokemon saves between my hacked 3ds running ftpd and my server

Sync file pairs over ftp and apply patches to them. Useful for using ftpd to transfer ROM save files to and from your DS if you also play on an emulator. Setup a cron job to check for your DS's ftp server periodically to setup automatic syncing. Untested on windows. It may just work out of the box, unsure though.

null 17 Jan 4, 2023
API to establish connection between server and client

Socket-programming API to establish connection between server and client, socket.socket() creates a socket object that supports the context manager ty

Muziwandile Nkomo 1 Oct 30, 2021