#
# see full details and documentation on bitbucket page of project
# https://bitbucket.org/yaroslaff/evalidate
#
import evalidate
src="a+b" # source code
c={'a': 1, 'b': 2} # context, variables which will be available for code
success,result = evalidate.safeeval(src,c)
if success:
print result
else:
print "ERROR:",result
# see full details and documentation on bitbucket page of project
# https://bitbucket.org/yaroslaff/evalidate
#
import evalidate
src="a+b" # source code
c={'a': 1, 'b': 2} # context, variables which will be available for code
success,result = evalidate.safeeval(src,c)
if success:
print result
else:
print "ERROR:",result
Metadata
Release files for evalidate 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| evalidate-0.3.tar.gz | 1.8 kB | Details |
Release files / evalidate-0.3.tar.gz
| Download URL | evalidate-0.3.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a1672f85fa85997dd244ce29d4fe4321fe6997d41152fba38124363ef1cee90
|
|
BLAKE2b-256 checksum How to use checksums |
60c30be3b2c7f503484802c7c3eb3a2130ce52a9ef04f38de9425d31e236bcdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |