Skip to content

Commit bcfd805

Browse files
committed
Added PyWebApi.Sample.sln
1 parent 1a84a2e commit bcfd805

File tree

7 files changed

+260
-19
lines changed

7 files changed

+260
-19
lines changed

PyWebApi.PyPI/PyWebApi.PyPI.pyproj

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,12 @@
5050
</ItemGroup>
5151
<ItemGroup>
5252
<Compile Include="pywebapi\cors.py" />
53-
<Compile Include="pywebapi\fmtr.py">
54-
<SubType>Code</SubType>
55-
</Compile>
56-
<Compile Include="pywebapi\func.py">
57-
<SubType>Code</SubType>
58-
</Compile>
59-
<Compile Include="pywebapi\_util.py">
60-
<SubType>Code</SubType>
61-
</Compile>
53+
<Compile Include="pywebapi\fmtr.py" />
54+
<Compile Include="pywebapi\func.py" />
55+
<Compile Include="pywebapi\_util.py" />
6256
<Compile Include="pywebapi\__init__.py" />
6357
<Compile Include="setup.py" />
64-
<Compile Include="test_app.py">
65-
<SubType>Code</SubType>
66-
</Compile>
58+
<Compile Include="test_app.py" />
6759
</ItemGroup>
6860
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.Web.targets" />
6961
<!-- Specify pre- and post-build commands in the BeforeBuild and

Sample/.gitignore

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/
130+
131+
# Visual Studio
132+
Thumbs.db
133+
*.obj
134+
*.exe
135+
*.pdb
136+
*.user
137+
*.aps
138+
*.pch
139+
*.vspscc
140+
*_i.c
141+
*_p.c
142+
*.ncb
143+
*.suo
144+
*.sln.docstates
145+
*.tlb
146+
*.tlh
147+
*.bak
148+
*.cache
149+
*.ilk
150+
*.log
151+
[Bb]in
152+
[Dd]ebug*/
153+
*.lib
154+
*.sbr
155+
obj/
156+
[Rr]elease*/
157+
_ReSharper*/
158+
[Tt]est[Rr]esult*
159+
*.vssscc
160+
$tf*/
161+
packages/*/
162+
*.nupkg
163+
.vs/*/

Sample/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Abel Cheng <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Sample/PyWebApi.Sample.sln

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.1145
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "PyWebApi.IIS", "PyWebApi.IIS\PyWebApi.IIS.pyproj", "{5869E351-5ABC-4EBF-BD49-892170C0FCFD}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "UserApps", "UserApps", "{9A0F2FE6-ACEA-4F93-A798-E29ED344E246}"
9+
ProjectSection(SolutionItems) = preProject
10+
PyWebApi.IIS\user-script-root\test_directory\test_module.py = PyWebApi.IIS\user-script-root\test_directory\test_module.py
11+
EndProjectSection
12+
EndProject
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdomdClient_From_NuGet", "UserApps\AdomdClient_From_NuGet\AdomdClient_From_NuGet.csproj", "{92BA630D-18B4-448C-B9D6-10698C74EEEE}"
14+
EndProject
15+
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "MdxReader", "UserApps\MdxReader\MdxReader.pyproj", "{ADC55014-753C-41C9-AA62-32D29CEB7248}"
16+
EndProject
17+
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "ServicesGrouping", "UserApps\ServicesGrouping\ServicesGrouping.pyproj", "{3531393B-7964-486F-B517-BDDF01EB96DA}"
18+
EndProject
19+
Global
20+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
21+
Debug|Any CPU = Debug|Any CPU
22+
Release|Any CPU = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
25+
{5869E351-5ABC-4EBF-BD49-892170C0FCFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{5869E351-5ABC-4EBF-BD49-892170C0FCFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{5869E351-5ABC-4EBF-BD49-892170C0FCFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{5869E351-5ABC-4EBF-BD49-892170C0FCFD}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{92BA630D-18B4-448C-B9D6-10698C74EEEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{92BA630D-18B4-448C-B9D6-10698C74EEEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{92BA630D-18B4-448C-B9D6-10698C74EEEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{92BA630D-18B4-448C-B9D6-10698C74EEEE}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{ADC55014-753C-41C9-AA62-32D29CEB7248}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{ADC55014-753C-41C9-AA62-32D29CEB7248}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{3531393B-7964-486F-B517-BDDF01EB96DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
36+
{3531393B-7964-486F-B517-BDDF01EB96DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
37+
EndGlobalSection
38+
GlobalSection(SolutionProperties) = preSolution
39+
HideSolutionNode = FALSE
40+
EndGlobalSection
41+
GlobalSection(NestedProjects) = preSolution
42+
{92BA630D-18B4-448C-B9D6-10698C74EEEE} = {9A0F2FE6-ACEA-4F93-A798-E29ED344E246}
43+
{ADC55014-753C-41C9-AA62-32D29CEB7248} = {9A0F2FE6-ACEA-4F93-A798-E29ED344E246}
44+
{3531393B-7964-486F-B517-BDDF01EB96DA} = {9A0F2FE6-ACEA-4F93-A798-E29ED344E246}
45+
EndGlobalSection
46+
GlobalSection(ExtensibilityGlobals) = postSolution
47+
SolutionGuid = {061DDA1B-510D-4D10-A7F9-82567C4C5D42}
48+
EndGlobalSection
49+
EndGlobal

Sample/README.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
########
2+
PyWebApi
3+
########
4+
5+
|
6+
7+
`Sample PyWebApi Server (for IIS) <https://github.com/DataBooster/PyWebApi#sample-pywebapi-server-for-iis>`_
8+
------------------------------------------------------------------------------------------------------------
9+
10+
|
11+
12+
**Sample user-apps/user-modules/user-scripts**:
13+
14+
1. `MdxReader <https://github.com/DataBooster/PyWebApi#mdx-reader>`_
15+
---------------------------------------------------------------------
16+
17+
2. `Services Grouping <https://github.com/DataBooster/PyWebApi#services-grouping>`_
18+
------------------------------------------------------------------------------------

Sample/UserApps/ServicesGrouping/ServicesGrouping.pyproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
<SchemaVersion>2.0</SchemaVersion>
55
<ProjectGuid>3531393b-7964-486f-b517-bddf01eb96da</ProjectGuid>
66
<ProjectHome>.</ProjectHome>
7-
<StartupFile>rest_grouping.py</StartupFile>
7+
<StartupFile>
8+
</StartupFile>
89
<SearchPath>
910
</SearchPath>
1011
<WorkingDirectory>.</WorkingDirectory>
1112
<OutputPath>.</OutputPath>
1213
<Name>ServicesGrouping</Name>
1314
<RootNamespace>ServicesGrouping</RootNamespace>
1415
<InterpreterId>MSBuild|env|$(MSBuildProjectFullPath)</InterpreterId>
16+
<IsWindowsApplication>False</IsWindowsApplication>
1517
</PropertyGroup>
1618
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
1719
<DebugSymbols>true</DebugSymbols>

Utilities.PyPI/Utilities.PyPI.pyproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,9 @@
4343
<Compile Include="dbdatareader.py" />
4444
<Compile Include="setup_simple_rest_call.py" />
4545
<Compile Include="setup_dbdatareader.py" />
46-
<Compile Include="setup_task_grouping.py">
47-
<SubType>Code</SubType>
48-
</Compile>
46+
<Compile Include="setup_task_grouping.py" />
4947
<Compile Include="simple_rest_call.py" />
50-
<Compile Include="task_grouping.py">
51-
<SubType>Code</SubType>
52-
</Compile>
48+
<Compile Include="task_grouping.py" />
5349
</ItemGroup>
5450
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
5551
<!-- Uncomment the CoreCompile target to enable the Build command in

0 commit comments

Comments
 (0)