Easily import values into python
Project description
PyVals
WARNING: THIS IS EXTREMELY HACKABLE, DO NOT USE IT FOR CLIENT INTERACTIONS!
File extension: *.val
Possible Types(currently):
- Integers
- Float
- Strings(But only double quotation marks)
- Math (Syntax: + - * / % ^)
- Variable = Variable
Todo
System for saving the all variables.
Implement other languages.
Bridge the other languages(Although this is a Wish Dream)
Example
values.val:
a = 2
b = "Hello World"
c = a
d = %math(2+2*2^2)
main.py:
import pyvals
pyvals.register(globals())
pyvals.vals_from(open("values.val").read())
# Yes, these variables did automatically generate
print(a)
print(b)
print(c)
print(d)
# output:
# 2
# Hello World
# 2
# 10
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file PyVals-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: PyVals-1.1.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24f3674f1a815d33409451bd91d8e9c6c14a495fa975a4e9aad5b9c6961313d7 |
|
MD5 | 2f804d039f8293eb99fc4529114d5384 |
|
BLAKE2b-256 | 8d10f4756320d725b8586777a4a6adaf4ff098ec0aa3b9635f5091facac07051 |