Rename gerbonara/gerber package to just gerbonara

merge-requests/1/head
jaseg 2022-01-30 20:11:38 +01:00
rodzic 259a561868
commit c3ca4f95bd
344 zmienionych plików z 29 dodań i 66 usunięć

Wyświetl plik

@ -1 +1,30 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2013-2014 Paulo Henrique Silva <ph.silva@gmail.com>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Gerbonara
=========
gerbonara provides utilities for working with Gerber (RS-274X) and Excellon
files in python.
"""
from .rs274x import GerberFile
from .excellon import ExcellonFile
from .ipc356 import Netlist
from .layers import LayerStack
__version__ = '0.9.0'

Wyświetl plik

@ -1,39 +0,0 @@
from os import path, listdir
from glob import glob
from . import __version__
import click
@click.group()
@click.version_option(__version__)
def cli():
pass
@click.command()
@click.option('-o', '--outfile', type=click.File(mode='wb'), help='Output Filename (extension will be added automatically)')
@click.option('-t', '--theme', default='default', type=click.Choice(['default', 'OSH Park', 'Blue', 'Transparent Copper', 'Transparent Multilayer'], case_sensitive=False), help='Select render theme')
@click.option('-w', '--width', type=click.INT, help='Maximum width')
@click.option('-h', '--height', type=click.INT, help='Maximum height')
@click.option('-v', '--verbose', is_flag=True, help='Increase verbosity of the output')
@click.argument('filenames', nargs=-1, type=click.Path(exists=True))
def render(outfile, theme, width, height, verbose, filenames):
"""Render gerber files to image. If a directory is provided, it should be provided alone and should contain the gerber files for a single PCB."""
if len(filenames) == 0:
raise click.UsageError(message='No files or folders provided')
if len(filenames) > 1:
for f in filenames:
if path.isdir(f):
raise click.UsageError(message='If a directory is provided, it should be provided alone and should contain the gerber files for a single PCB')
# list files if folder id given
if len(filenames) == 1 and path.isdir(filenames[0]):
filenames = listdir(filenames[0])
#filenames = [f for f in glob(f'{filenames[0]}/*.txt')]
click.echo(f'render {filenames} with theme {theme}')
cli.add_command(render)

Wyświetl plik

@ -1,27 +0,0 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2013-2014 Paulo Henrique Silva <ph.silva@gmail.com>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Gerbonara
=========
gerbonara provides utilities for working with Gerber (RS-274X) and Excellon
files in python.
"""
from .rs274x import GerberFile
from .excellon import ExcellonFile
from .layers import LayerStack

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 6.1 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 6.1 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 46 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 46 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 6.3 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 6.3 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 1.3 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 1.3 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 5.8 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 5.8 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 3.4 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 3.4 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 4.0 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 4.0 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 1.7 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 1.7 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 70 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 70 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 11 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 11 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 9.8 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 9.8 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 70 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 70 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 94 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 94 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 32 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 32 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 32 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 32 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 31 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 31 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 556 B

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 556 B

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 2.2 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 2.2 KiB

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 18 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 18 KiB

Some files were not shown because too many files have changed in this diff Show More