Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Web interface for X-ray properties of the elements, using Python and Flask

License

NotificationsYou must be signed in to change notification settings

xraypy/xrayweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web interface for X-ray properties of the elements,usinghttps://github.com/xraypy/XrayDB,Python, Flask, and Plotly.

Existing versions of this wep application are running at

https://seescience.org/xraydb and athttps://xraydb.xrayabsorption.org

install

XrayWeb requires Python 3.9 or higher

To install this code, use

> pip install xrayweb

To run a local version of this web application, run the script "run.py" with

  > python run.py

will launch a local web server with the app running athttp://127.0.0.1:4966/

deploying with Apache and WSGI

To deploy this web application with Apache, you will need to installmod_wsgi(for Python3) for your instance of Apache. You will also have create a wsgipython script that can be run by the web server.

For examplle, you may make a folder/var/www/xraydb and place in the filexraydb.wsgi, containing

#!/uar/bin/python# file /var/www/xraydb/xraydb.wsgifrom xrayweb import app as application

Then, you will need to load the wsgi module in your Apache configuration, with

# make sure wsgi module is loaded<IfModule !wsgi_module>    LoadModule wsgi_module modules/mod_wsgi_python3.so</IfModule># define /xraydb URLWSGIDaemonProcess xraydb user=apache group=apache threads=5WSGIScriptAlias /xraydb /var/www/xraydb/xraydb.wsgi<Directory /var/www/xraydb>   WSGIProcessGroup xraydb   WSGIApplicationGroup %{GLOBAL}   Options all   Require all granted</Directory>

Restarting apache, the script should run on your web server athttps://example.com/xraydb

About

Web interface for X-ray properties of the elements, using Python and Flask

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp