mementum/fritzchecksum — 32★ trên GitHub (Python). Fritz!Box Configuration File CRC Calculator/Writer (pip with cli and standalone Win32/64 GUI)
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
positional arguments:
input Write input to output with new CRC
optional arguments:
-h, --help show this help message and exit
--change, -c Change CRC directly in input file
--output OUTPUT, -o OUTPUT
Write input to output with new CRC
The module contains two Python 1st class citizens:
function calc_crc32(fin, fout=None, logcb=log_null)
Calculates the CRC of a Fritz!Box configuration export file and writes
the new CRC sum to a new configuration file
Accepts:
fin: a file-like
fout: None or a file-like object. If a file, then the input will be
written to the output with the new calculated CRC
logcb (default: log_null which is an empty stub)
a logger which must a accepts *args (print will work)
Returns:
(oldcrc, newcrc) -> tuple
oldcrc and newcrc will be strings representing a CRC32 in hexadecimal
format if everything went fine
oldcrc can be None which means an IOError exception has been
raised and the operation has not completed successfully. In that case
the 2nd value in the tuple contains the raised exception
Note: the escape character '' is escaped iself in some of the
lines. CRC calculation will be wrong if the character is not
un-escaped.
The file is composed of the following:
A global "CONFIGURATION EXPORT" section
Some variables (a=b) may be defined at this level. This definition
contributes to the the CRC calculation by concatenating a and b and
null terminating the result.
Subsections:
The name (null terminated) of the subsection contributes to the CRC
calculation
XXXBINFILE Section
Lines represent hexadecimal values. The values (binary converted)
are used directly in the calculation of the CRC (stripping eol
before)
CFGFILE Section
It is a textfile embedded in the larger export file. All lines
including '\n' contribute to the CRC except the last line which
must be stripped of the EOL character before being included in
the CRC calculation
class ExportFile
Class to encapsulate the parsing of an export file and overwriting of
the CRC value
After loading a file it keeps the loaded content in an internal fout
With the following methods:
load(self, fin, out=True)
Loads from a file-like/string object fin and will update internal
status, error, oldcrc and newcrc
if out is False no internal buffering of the loaded input will
be made
Returns:
tuple -> (status, error)
If status is ST_OK (True) error will be None
If status is ST_ERROR (False) error will be the raised exception
load_file(self, fin, out=True)
Loads from a file-like object fin and will update internal
status, error, oldcrc and newcrc
if out is False no internal buffering of the loaded input will
be made
Returns:
tuple -> (status, error)
If status is ST_OK (True) error will be None
If status is ST_ERROR (False) error will be the raised exception
save(self, fout)
Writes the internal self.fout file to a file-like/string fout
Returns:
tuple -> (status, error)
If status is ST_OK (True) error will be None
If status is ST_ERROR (False) error will be the raised exception
save_file(self, fout)
Writes the internal self.fout file to a file-like object fout
Returns:
tuple -> (status, error)
If status is ST_OK (True) error will be None
If status is ST_ERROR (False) error will be the raised exception
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/mementum/fritzchecksum là nguồn chính thức.
mementum/fritzchecksum có phải mã nguồn mở không?
Có — mementum/fritzchecksum phát hành theo license GPL-3.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/mementum/fritzchecksum.
mementum/fritzchecksum có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho mementum/fritzchecksum. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
mementum/fritzchecksum có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho mementum/fritzchecksum. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
mementum/fritzchecksum còn đang phát triển không?
Commit gần nhất trên mementum/fritzchecksum là 6.2 năm trước (theo timestamp GitHub). Repo có 8 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
mementum/fritzchecksum dùng license gì?
mementum/fritzchecksum phát hành theo license GPL-3.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về fritzchecksum?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về fritzchecksum.