minhas funções mais utilizadas
def TipoArquivo():
try:
a = (__file__[-2:])
return 'py'
except:
a = os.getcwd()[-2:]
return 'jupter'
def LimparTela(self):
if self.TipoArquivo() != 'py':
pass
else:
os.system('cls')
def DeletarArquivo(caminho_arquivo):
if os.path.exists(caminho_arquivo):
os.remove(caminho_arquivo)
def CriarPasta(caminho_da_pasta):
os.makedirs(caminho_da_pasta)
def Pasta_do_Arquivo(caminho_arquivo):
return os.path.dirname(caminho_arquivo)
def Juntar(a, b):
return os.path.join(a, b)
def Escrever_json(nomedodicionario, nomedoarquivo):
if nomedoarquivo[-4:] != 'json':
nomedoarquivo = nomedoarquivo+'.json'
with open(nomedoarquivo, 'w') as f2:
json.dump(nomedodicionario, f2, indent=4)
def Ler_json(nomedoarquivo): # retorna um dicionário
if nomedoarquivo[-4:] != 'json':
nomedoarquivo = nomedoarquivo+'.json'
with open(nomedoarquivo, 'r') as f2:
try:
a = json.load(f2)
return a
except json.JSONDecodeError as e:
print(f"Erro ao decodificar JSON: {e}")
return {}
def Data():
current_time = datetime.now()
formatted_time = current_time.strftime('%d-%m-%Y-%H:%M:%S')
return formatted_time
def SalvarPickle(var, nome):
if nome[-3:] != 'plk':
nome = nome+'.plk'
with open(nome+'.plk', 'wb') as arquivo:
pickle.dump(var, arquivo)
def LerPickle(nome):
if nome[-3:] != 'plk':
nome = nome+'.plk'
with open(nome+'.plk', 'rb') as arquivo:
return pickle.load(arquivo)
def IniciarThread(funcao, argu = ''):
if argu == '':
Thread(target=funcao, daemon=True).start()
else:
Thread(target=funcao, arqgs = argu, daemon=True).start()
Metadata
Release files for funcoes-leo 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| funcoes_leo-0.1.2.tar.gz | 2.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| funcoes_leo-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.7 kB
Release files / funcoes_leo-0.1.2.tar.gz
| Download URL | funcoes_leo-0.1.2.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72e61e66b732342e9de8b7e4a5d7e96d0532e9ba355c0eef2112077df988e576
|
|
BLAKE2b-256 checksum How to use checksums |
443e83ecd2045c8eb044ad299a47a940e0545dca685337a5406f2c297135160f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.2 Windows/10
|
Release files / funcoes_leo-0.1.2-py3-none-any.whl
| Download URL | funcoes_leo-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
861e1a6f0ec55159f547006cb76e4d758229ad63dfbb4db3188f07371f52be5f
|
|
BLAKE2b-256 checksum How to use checksums |
42108d5865480c9c9545ed1038a5b9d0b9f99f6840cae7e4ba51d5bc0d784973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.2 Windows/10
|
Security for funcoes-leo 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.