# W3bsite
Author(s): Daan van den Bergh<br>
Copyright: © 2020 Daan van den Bergh All Rights Reserved<br>
<br>
<br>
<br>
<p align="center">
<img src="https://raw.githubusercontent.com/vandenberghinc/public-storage/master/vandenberghinc/icon/icon.png" alt="VanDenBerghInc" width="50"/>
</p>
## Installation
pip3 install w3bsite --upgrade && python3 -c "import w3bsite"
### Troubleshooting:
#### Apple Silicon M1:
##### Failed to install grpcio
arch -arch x86_64 /usr/bin/python3 -m pip install firebase-admin
## Setup.
### Namecheap.
1: Go to https://namecheap.com and sign up / sign in. <br>
2: Link a credit card to your account. <br>
3: $50 balance is required to activate the developer api, so add balance if you did not reach this limit yet. <br>
4: Enable the developer API. <br>
5: Whitelist your public ip (https://aruljohn.com). <br>
6: Note / copy the api key which will be required later. <br>
### Heroku.
1: go to https://heroku.com and sign up / sign in. <br>
2: login to the heroku cli with [$ heroku login]. <br>
### /.website.py
Create a file named "website.py" in your websites root directory.
my-website/
website.py
/
Add the following code to the file.
```python
#!/usr/bin/env python3
from w3bsite import Website
from dev0s import *
website = Website(
# the root path.
root=FilePath(__file__).base(back=1),
# the website name.
name="My Website",
# the organization.
organization="My Business",
# the organization unit.
organization_unit="Information Technology",
# the organization country code.
country_code="NL",
# the root domain.
domain="mydomain.com",
# the sub domains.
sub_domains=[],
# your namecheap username.
namecheap_username="myusername",
# your namecheap api key.
namecheap_api_key=".......",)
if __name__ == "__main__":
website.cli()
```
## CLI:
Usage: example <mode> <options>
Modes:
-h / --help : Show the documentation.
Options:
Author: Daan van den Bergh
Copyright: © Daan van den Bergh 2020. All rights reserved.
## Python Examples.
Initialize the encryption class (Leave the passphrase None if you require no passphrase).
```python
# initialize the encryption class.
encryption = Encryption(
key='mykey/',
passphrase='MyPassphrase123!')
```
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | w3bsite-4.25.8.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 188 浏览量
2022-01-17
09:17:54
上传
评论
收藏 149KB GZ 举报
温馨提示
共108个文件
py:51个
html:27个
ds_store:5个
资源来自pypi官网。 资源全名:w3bsite-4.25.8.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | w3bsite-4.25.8.tar.gz (108个子文件)
bash 499B
setup.cfg 38B
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.gitignore 2KB
documentation_view.html 48KB
defaults.html 22KB
purchase.html 17KB
styles.html 13KB
cancel.html 12KB
base.html 9KB
firebase.html 7KB
reset.html 4KB
activate.html 3KB
topbar.html 3KB
privacy_policy.html 3KB
signup.html 3KB
signin.html 3KB
requests.html 2KB
header.html 2KB
reset_password.html 2KB
activation.html 2KB
authentication.html 2KB
error.html 1KB
examples.html 1KB
permission_denied.html 998B
maintenance.html 974B
404.html 920B
requests.html 580B
view.html 243B
product.html 243B
products.html 243B
favicon.ico 118KB
MANIFEST.in 648B
installer 6KB
installer 5KB
json 761B
README.md 2KB
README.md 2KB
README.md 46B
django.nginx 2KB
not-zip-safe 1B
requirements.pip 879B
PKG-INFO 257B
PKG-INFO 257B
__init__.py 35KB
__init__.py 34KB
docs.py 34KB
__init__.py 29KB
__init__.py 20KB
__init__.py 18KB
__init__.py 12KB
__init__.py 11KB
__init__.py 11KB
__init__.py 10KB
requests.py 10KB
__init__.py 10KB
requests.py 10KB
defaults.py 8KB
__init__.py 7KB
__init__.py 5KB
__init__.py 5KB
__init__.py 4KB
settings.py 4KB
__init__.py 3KB
__init__.py 3KB
__init__.py 2KB
views.py 2KB
__init__.py 2KB
users.py 2KB
products.py 2KB
__init__.py 1KB
urls.py 1KB
__init__.py 1KB
views.py 1KB
__init__.py 1KB
__init__.py 1KB
setup.py 833B
requests.py 797B
requests.py 797B
stripe.py 769B
views.py 758B
views.py 747B
manage.py 627B
wsgi.py 403B
asgi.py 403B
__init__.py 335B
__init__.py 292B
__init__.py 281B
__init__.py 144B
__init__.py 96B
__init__.py 63B
__init__.py 57B
__init__.py 40B
__init__.py 36B
__init__.py 0B
gunicorn.service 233B
共 108 条
- 1
- 2
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功