mirror of
https://github.com/ulbwazhine/MockupEngineer.git
synced 2024-11-22 08:56:33 +03:00
2022.22.01.3
This commit is contained in:
parent
da324ab229
commit
f31ce4470f
|
@ -6,8 +6,6 @@ from MockupModule import MockupEngineer
|
||||||
def main():
|
def main():
|
||||||
mockup = MockupEngineer()
|
mockup = MockupEngineer()
|
||||||
|
|
||||||
mockup.__create_examples__('/Users/ulbwa/Documents/MockupEngineer/MockupModule/templates/example.jpg')
|
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
for template in mockup.templates:
|
for template in mockup.templates:
|
||||||
print('[{}] {} {} [{}] ({})'.format(i, template.manufacturer, template.name, template.resolution, template.year))
|
print('[{}] {} {} [{}] ({})'.format(i, template.manufacturer, template.name, template.resolution, template.year))
|
||||||
|
|
31
README.md
31
README.md
|
@ -2,3 +2,34 @@
|
||||||
<h1>MockupEngineer</h1>
|
<h1>MockupEngineer</h1>
|
||||||
<p>An simple library for creating beautiful screenshots.</p>
|
<p>An simple library for creating beautiful screenshots.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
<img align="center" src="https://raw.githubusercontent.com/ulbwazhine/MockupEngineer/main/MockupModule/templates/iphone12promax/example.png" alt="Apple iPhone 12 Pro Max">
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
In Python console:
|
||||||
|
```python
|
||||||
|
from MockupModule import MockupEngineer
|
||||||
|
|
||||||
|
mockup = MockupEngineer()
|
||||||
|
|
||||||
|
mockup.generate(template=mockup.templates[0],
|
||||||
|
screenshot_path='/path/to/screenshot',
|
||||||
|
color=mockup.templates[0].colors[0].color)
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
>>> /path/to/mockup
|
||||||
|
```
|
||||||
|
|
||||||
|
As a standalone application:
|
||||||
|
```
|
||||||
|
$ python -m MockupModule
|
||||||
|
```
|
||||||
|
|
||||||
|
## Links
|
||||||
|
* [Author](https://t.me/ulbwa)
|
||||||
|
* [GitHub](https://github.com/ulbwazhine/MockupEngineer)
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -9,7 +9,7 @@ except ImportError:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='MockupEngineer',
|
name='MockupEngineer',
|
||||||
version='2022.22.01.2',
|
version='2022.22.01.3',
|
||||||
packages=['MockupModule', 'MockupModule.templates'],
|
packages=['MockupModule', 'MockupModule.templates'],
|
||||||
url='https://github.com/ulbwazhine/MockupEngineer',
|
url='https://github.com/ulbwazhine/MockupEngineer',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user